diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2010-05-08 04:38:53 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:37 +0000 |
commit | c1eebf26871feec7a56eea2d2184ca06b596b30d (patch) | |
tree | a08474ecd18134dfe7d15db2a31d86a56ac70f75 /src/game | |
parent | 87fa20ce22241cc07b76b5d0642998db2aa9feb4 (diff) |
* Fix crash in readconfig
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_admin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 2b26b6be..43b76fa0 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1109,7 +1109,8 @@ qboolean G_admin_readconfig( gentity_t *ent ) { level.clients[ i ].pers.admin = G_admin_admin( level.clients[ i ].pers.guid ); - G_admin_authlog( &g_entities[ i ] ); + if( level.clients[ i ].pers.admin ) + G_admin_authlog( &g_entities[ i ] ); G_admin_cmdlist( &g_entities[ i ] ); } } |