diff options
-rw-r--r-- | src/game/g_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index e438bfb8..4a9f1cd7 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -100,7 +100,7 @@ int G_ClientNumberFromString( gentity_t *to, char *s ) if( cl->pers.connected == CON_DISCONNECTED ) return -1; - return idnum; + return i; } // check for a name match @@ -114,7 +114,7 @@ int G_ClientNumberFromString( gentity_t *to, char *s ) G_SanitiseName( cl->pers.netname, n2 ); if( !strcmp( n2, s2 ) ) - return idnum; + return i; } return -1; |