Skip to content

Commit

Permalink
Fixed it
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed May 14, 2024
1 parent 0f3cbea commit bc177ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/lua_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ void PushValue(GarrysMod::Lua::ILuaBase* LUA, ILuaValue* value)
PushFile(LUA, (LUA_File*)value->data);
break;
case GarrysMod::Lua::Type::Table:
GarrysMod::Lua::ILuaInterface* LLUA = (GarrysMod::Lua::ILuaInterface*)LUA;
LLUA->PreCreateTable(0, value->tbl.size());
{
GarrysMod::Lua::ILuaInterface* LLUA = (GarrysMod::Lua::ILuaInterface*)LUA;
LLUA->PreCreateTable(0, value->tbl.size());
}
for (auto& [key, val] : value->tbl)
{
PushValue(LUA, key);
Expand Down

0 comments on commit bc177ae

Please sign in to comment.