diff --git a/src/lua/LegacyLuaAPI.cpp b/src/lua/LegacyLuaAPI.cpp index eefa1f648..0543381fb 100644 --- a/src/lua/LegacyLuaAPI.cpp +++ b/src/lua/LegacyLuaAPI.cpp @@ -523,8 +523,8 @@ int luacon_keyevent(int key, int modifier, int event) c--; i--; } - lua_pop(l, 1); luacon_ci->Log(CommandInterface::LogError, luacon_geterror()); + lua_pop(l, 1); } else {