From 6704e0de9f7225e009585cd97c455ad4142d3651 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 21 Jan 2020 15:22:05 +0100 Subject: [PATCH] luainstance.cpp: init var --- src/gui/lua/luainstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/lua/luainstance.cpp b/src/gui/lua/luainstance.cpp index ceb0b80ea..dc9576a56 100644 --- a/src/gui/lua/luainstance.cpp +++ b/src/gui/lua/luainstance.cpp @@ -636,7 +636,7 @@ void LuaInstRegisterFunctions(lua_State *L, bool fromThreads/*=false*/) { NULL, NULL } }; // ------------------------------------------ - int top; + int top = 0; if (fromThreads) top = lua_gettop(L);