mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-26 08:26:31 +00:00
UCRP_WETPLAYER: Adjust SOC load to not Z_StrDup before confirming other data is valid, to prevent memory leak
This commit is contained in:
parent
f6a83d2161
commit
ff926440d5
1 changed files with 2 additions and 1 deletions
|
|
@ -2643,7 +2643,6 @@ static void readcondition(UINT8 set, UINT32 id, char *word2)
|
|||
ty = UCRP_WETPLAYER;
|
||||
re = MFE_UNDERWATER;
|
||||
x1 = 1;
|
||||
stringvar = Z_StrDup(params[1]);
|
||||
|
||||
if (params[2])
|
||||
{
|
||||
|
|
@ -2655,6 +2654,8 @@ static void readcondition(UINT8 set, UINT32 id, char *word2)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
stringvar = Z_StrDup(params[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue