summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2010-03-17 06:14:07 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:30 +0000
commit40e08de1ca0b9e4cde7493fff3e8f2a73e1900f7 (patch)
tree41e00a60f4dfba1e43c3b9952899fcdc35edfe65
parent3fd4159c3598b8ec6dbd1b6cfe43a50089a54449 (diff)
* Fix a bug preventing IP bans from matching
-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 37253051..476450fd 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -1311,7 +1311,7 @@ static qboolean admin_create_ban( gentity_t *ent,
Q_strncpyz( b->name, netname, sizeof( b->name ) );
Q_strncpyz( b->guid, guid, sizeof( b->guid ) );
- memcpy( &b->ip, &ip, sizeof( b->ip ) );
+ memcpy( &b->ip, ip, sizeof( b->ip ) );
Com_sprintf( b->made, sizeof( b->made ), "%02i/%02i/%02i %02i:%02i:%02i",
qt.tm_mon + 1, qt.tm_mday, qt.tm_year % 100,