diff options
-rw-r--r-- | src/game/g_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 163636f..db39491 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1055,7 +1055,7 @@ void G_Say( gentity_t *ent, gentity_t *target, int mode, const char *chatText ) return; // Invisible players cannot use chat - if( ent->client->sess.invisible == qtrue ) + if( ent && ent->client->sess.invisible == qtrue ) { if( !G_admin_cmd_check( ent, qtrue ) ) trap_SendServerCommand( ent-g_entities, "print \"You cannot chat while invisible\n\"" ); |