diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index f9d93571d..93ed8de87 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -1240,7 +1240,7 @@ int CLuaInstance::MessageboxExec(lua_State *L) { "ok", CMessageBox::mbrOk }, { NULL, 0 } }; - if (tableLookup(L, "default", tmp)) + if (tableLookup(L, "default", tmp)) { lua_pushvalue(L, -2); const char *val = lua_tostring(L, -2); for (int i = 0; mbr[i].name; i++) @@ -1248,6 +1248,7 @@ int CLuaInstance::MessageboxExec(lua_State *L) default_button = mbr[i].code; break; } + } int res = ShowMsgUTF(name.c_str(), text.c_str(), (CMessageBox::result_) default_button, (CMessageBox::buttons_) show_buttons, icon.empty() ? NULL : icon.c_str(), width, timeout, return_default_on_timeout);