mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +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;
|
ty = UCRP_WETPLAYER;
|
||||||
re = MFE_UNDERWATER;
|
re = MFE_UNDERWATER;
|
||||||
x1 = 1;
|
x1 = 1;
|
||||||
stringvar = Z_StrDup(params[1]);
|
|
||||||
|
|
||||||
if (params[2])
|
if (params[2])
|
||||||
{
|
{
|
||||||
|
|
@ -2655,6 +2654,8 @@ static void readcondition(UINT8 set, UINT32 id, char *word2)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stringvar = Z_StrDup(params[1]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue