summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2010-05-08 00:50:15 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:37 +0000
commit87fa20ce22241cc07b76b5d0642998db2aa9feb4 (patch)
tree5c60fbc0d01845e0b5339ca082785f5cb8630192 /src
parentd4c941568176ef996d0b8bb38dc05f0a593e0322 (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/game/g_namelog.c2
1 files changed, 2 insertions, 0 deletions
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 ];