diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-11-08 06:09:33 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:18 +0000 |
commit | 3a45e79eb384cdbcf6ff4c4b9b438a386640ba84 (patch) | |
tree | f37f5e1caa007693fc5a016c596a0e385663b3bb /src | |
parent | a7a3fc060305afb6ad1737edf141713e6e618596 (diff) |
* Fix for another bug where setlevel sets to the wrong person (Undeference, Rezyn)
Diffstat (limited to 'src')
-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 a81558ea..38511875 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1270,7 +1270,8 @@ qboolean G_admin_setlevel( gentity_t *ent ) if( level.clients[ i ].pers.connected == CON_DISCONNECTED ) continue; - if( matches && level.clients[ i ].pers.admin == a ) + if( matches && level.clients[ i ].pers.admin && + level.clients[ i ].pers.admin == a ) { vic = &g_entities[ i ]; continue; |