mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Fixes molgrum's crash
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2695 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
31ab61b06b
commit
c54e656470
1 changed files with 4 additions and 1 deletions
|
@ -1774,8 +1774,11 @@ void CL_Packet_f (void)
|
|||
if (Cmd_FromGamecode())
|
||||
{
|
||||
//realip
|
||||
Cmd_TokenizeString(in, false, false);
|
||||
char *temp = Z_Malloc(strlen(in)+1);
|
||||
strcpy(temp, in);
|
||||
Cmd_TokenizeString(temp, false, false);
|
||||
cls.realip_ident = atoi(Cmd_Argv(2));
|
||||
Z_Free(temp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue