diff --git a/src/gui/lua/luainstance.cpp b/src/gui/lua/luainstance.cpp index f15d8a36d..f2937fe4d 100644 --- a/src/gui/lua/luainstance.cpp +++ b/src/gui/lua/luainstance.cpp @@ -644,7 +644,7 @@ void LuaInstRegisterFunctions(lua_State *L, bool fromThreads/*=false*/) { NULL, NULL } }; // ------------------------------------------ - int top; + int top = 0; if (fromThreads) top = lua_gettop(L);