Clean up gsc functions with additional checks

This commit is contained in:
2022-02-24 19:25:58 +00:00
parent e9a877bd74
commit 286481cbcd
5 changed files with 77 additions and 35 deletions

View File

@ -14,7 +14,13 @@ namespace notifies
void client_command_stub(int clientNum)
{
char cmd[1024] = { 0 };
char cmd[1024] = {0};
const auto* entity = &game::g_entities[clientNum];
if (entity->client == nullptr)
{
return; // Client is not fully in game yet
}
game::SV_Cmd_ArgvBuffer(0, cmd, 1024);