mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-16 09:02:06 +00:00
token is already an UINT32 from doomstat.s, let name the var, stoken
This commit is contained in:
parent
c3694ab1fa
commit
d65f416aa2
1 changed files with 4 additions and 4 deletions
|
@ -1196,10 +1196,10 @@ static void TextmapLine(UINT32 i, char *param)
|
|||
CONS_Debug(DBG_SETUP, "Invalid linedef string argument number: %d\n", argnum);
|
||||
return;
|
||||
}
|
||||
char* token = M_GetToken(NULL);
|
||||
lines[i].stringargs[argnum] = Z_Malloc(strlen(token)+1, PU_LEVEL, NULL);
|
||||
M_Memcpy(lines[i].stringargs[argnum], token, strlen(token) + 1);
|
||||
Z_Free(token);
|
||||
char* stoken = M_GetToken(NULL);
|
||||
lines[i].stringargs[argnum] = Z_Malloc(strlen(stoken)+1, PU_LEVEL, NULL);
|
||||
M_Memcpy(lines[i].stringargs[argnum], stoken, strlen(stoken) + 1);
|
||||
Z_Free(stoken);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue