summaryrefslogtreecommitdiff
path: root/src/cgame/cg_servercmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_servercmds.c')
-rw-r--r--src/cgame/cg_servercmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c
index 6c43782a..0b562360 100644
--- a/src/cgame/cg_servercmds.c
+++ b/src/cgame/cg_servercmds.c
@@ -947,7 +947,8 @@ static void CG_Say( int clientNum, saymode_t mode, const char *text )
centity_t *locent;
locent = CG_GetPlayerLocation( );
- locationNum = locent->currentState.generic1;
+ if( locent )
+ locationNum = locent->currentState.generic1;
}
else
locationNum = ci->location;