Skip to content

Commit

Permalink
Fix CLuaHandle::DrawObjectsLua errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Jan 29, 2022
1 parent bfb6b6a commit 85fc43f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rts/Lua/LuaHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1911,8 +1911,8 @@ void CLuaHandle::DrawInMiniMapBackground()
void CLuaHandle::DrawObjectsLua(std::initializer_list<bool> bools, const char* func) {
LUA_CALL_IN_CHECK(L);
const int extraArgs = bools.size();
luaL_checkstack(L, 3 + extraArgs, func);
static const LuaHashString cmdStr(func);
luaL_checkstack(L, 2 + extraArgs, func);
const LuaHashString cmdStr(func);
if (!cmdStr.GetGlobalFunc(L))
return;

Expand Down

0 comments on commit 85fc43f

Please sign in to comment.