summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-04-17 23:58:40 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-04-18 01:14:59 +0200
commitadabd56276c47fcec73c845ad9b7424f84074c52 (patch)
tree901837f0f1b182b3dc3e76eebccee11dc7916008
parenta829d0eeb92bac66cdac497a67cf286078db917d (diff)
Fix a segfault in !rban.
-rw-r--r--src/game/g_admin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 7363a1a..79dfb71 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -9611,7 +9611,7 @@ qboolean G_admin_rban( gentity_t *ent, int skiparg )
report = g_admin_reports[ ID - 1 ];
if( admin_guid_to_level( ent->client->pers.guid ) <
- admin_guid_to_level( g_admin_reports[ ID ]->guid ) )
+ admin_guid_to_level( report->guid ) )
{
ADMP( "Your target has a higher admin level than you." );
return qfalse;