mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-03 17:51:55 +00:00
Clean up gsc functions with additional checks
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user