diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index 6ea65173d..c8d82164d 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -475,8 +475,8 @@ void CLuaInstance::runScript(const char *fileName, std::vector *arg DisplayErrorMessage(lua_tostring(lua, -1), "Lua Script Error:"); if (error_string) *error_string = std::string(lua_tostring(lua, -1)); + g_Zapit->setStandby(false); } - g_Zapit->setStandby(false); } // Example: runScript(fileName, "Arg1", "Arg2", "Arg3", ..., NULL);