summaryrefslogtreecommitdiff
path: root/source/sv_ccmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_ccmds.c')
-rw-r--r--source/sv_ccmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/sv_ccmds.c b/source/sv_ccmds.c
index 6adb98b..7febc97 100644
--- a/source/sv_ccmds.c
+++ b/source/sv_ccmds.c
@@ -789,7 +789,7 @@ static int SV_ClientNum_m( char *buffer, int size ) {
if( !sv_client ) {
return Q_strncpyz( buffer, "", size );
}
- return Com_sprintf( buffer, size, "%d", sv_client - svs.udp_client_pool );
+ return Com_sprintf( buffer, size, "%d", sv_client->number );
}
//===========================================================