From 87fa20ce22241cc07b76b5d0642998db2aa9feb4 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 8 May 2010 00:50:15 +0000 Subject: * Fix crash if you run spec999 at the exact wrong time when someone is lagging out, causing null namelog pointer in G_namelog_update_score --- src/game/g_namelog.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/g_namelog.c') diff --git a/src/game/g_namelog.c b/src/game/g_namelog.c index dfd8c712..60642496 100644 --- a/src/game/g_namelog.c +++ b/src/game/g_namelog.c @@ -79,6 +79,8 @@ void G_namelog_disconnect( gclient_t *client ) void G_namelog_update_score( gclient_t *client ) { namelog_t *n = client->pers.namelog; + if( n == NULL ) + return; n->team = client->pers.teamSelection; n->score = client->ps.persistant[ PERS_SCORE ]; -- cgit