Skip to content

Commit

Permalink
:<
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Apr 5, 2024
1 parent 4286660 commit e22b9b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/lua_ILuaInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ void RunHook(GarrysMod::Lua::ILuaInterface* LUA, const char* name, ILuaValue* ar
LUA->GetField(-1, "Run");
if (LUA->IsType(-1, GarrysMod::Lua::Type::Function))
{
LUA->Pop(1);

/*
LUA->PushString(name);
int pushed = 1;
if (args->type != GarrysMod::Lua::Type::Table)
Expand All @@ -570,7 +573,7 @@ void RunHook(GarrysMod::Lua::ILuaInterface* LUA, const char* name, ILuaValue* ar
std::string err_msg = "hook.Run had an Internal error. Report this please";
err_msg = err_msg + "(" + name + ")";
Msg(err_msg.c_str());
}
}*/
} else {
LUA->Pop(1);
error = "hook.Run is missing or not a function!";
Expand Down

0 comments on commit e22b9b1

Please sign in to comment.