summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2011-07-17 14:51:39 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:09 +0000
commit6e88c4903cce13a3e8399d5939811a6abadf4421 (patch)
treed211912c3903f1e3d8ac5ada758038f227bf99f3
parentd4afeac5a575c3c865ea8d592dd85d248a79185d (diff)
* Reported ban # when banned players attempt to connect was off by one
-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 faad787e..ef607fe0 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -873,7 +873,7 @@ static void G_admin_ban_message(
if( areason && ent )
{
// we just want the ban number
- int n = 0;
+ int n = 1;
g_admin_ban_t *b = g_admin_bans;
for( ; b && b != ban; b = b->next, n++ )
;