Skip to content

Commit

Permalink
Try to do it differently
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Apr 5, 2024
1 parent ca1c4ec commit 26d2143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/lua_ILuaInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,14 +554,15 @@ void RunHook(GarrysMod::Lua::ILuaInterface* LUA, const char* name, ILuaValue* ar
Msg("1. Top %i\n", LUA->Top());
if (args->type != GarrysMod::Lua::Type::Table)
{
int pre = LUA->Top();
for(auto&[key, val] : args->tbl)
{
Msg("Type: %i\n", val->type);
Msg("Top %i\n", LUA->Top());
++pushed;
PushValue(LUA, val);
Msg("Top %i\n", LUA->Top());
}
pushed += LUA->Top() - pre;
} else {
++pushed;
PushValue(LUA, args);
Expand Down

0 comments on commit 26d2143

Please sign in to comment.