diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-03-14 17:53:57 +0000 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-03-14 17:53:57 +0000 |
commit | 874b5af158b41d54ff40f1832d53a409e01faa44 (patch) | |
tree | 499feaac858691e987fb585ff9510de298483adb | |
parent | 7309ee5dd3ba0b9a40705bc6373d867aea3a6f97 (diff) |
fix segfault in !invisiblemaster
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index dfccfa3..6127f71 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -7344,7 +7344,7 @@ qboolean G_admin_invisible( gentity_t *ent, int skiparg ) // Make the player invisible G_ChangeTeam( ent, PTE_NONE ); ent->client->sess.invisible = qtrue; - ClientUserinfoChanged( ent->client->pers.connection->clientNum, qfalse ); + ClientUserinfoChanged( ent-g_entities, qfalse ); G_admin_namelog_update( ent->client, qtrue ); trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " disconnected\n\"", ent->client->pers.netname ) ); } @@ -7352,7 +7352,7 @@ qboolean G_admin_invisible( gentity_t *ent, int skiparg ) { // Make the player visible ent->client->sess.invisible = qfalse; - ClientUserinfoChanged( ent->client->pers.connection->clientNum, qfalse ); + ClientUserinfoChanged( ent-g_entities, qfalse ); G_admin_namelog_update( ent->client, qfalse ); trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " connected\n\"", ent->client->pers.netname ) ); trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " entered the game\n\"", ent->client->pers.netname ) ); |