Skip to content

Commit

Permalink
lua preferences: do not add enum default value as additional item
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBirzer authored and TurboGit committed Feb 21, 2022
1 parent be7bf8a commit 10399eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lua/preferences.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,8 @@ static int register_pref_sub(lua_State *L)

int value = 0;
built_elt->type_data.enum_data.default_value = strdup(luaL_checkstring(L, cur_param));
cur_param++;

while(!lua_isnoneornil(L, cur_param))
{
luaA_enum_value_type(L, enum_type, &value, luaL_checkstring(L, cur_param));
Expand Down

0 comments on commit 10399eb

Please sign in to comment.