mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
It is impossible for a string to be allocated in this case
This commit is contained in:
parent
2ba1417b9e
commit
59b7a65bca
1 changed files with 0 additions and 7 deletions
|
|
@ -1458,14 +1458,7 @@ static void Setvalue(consvar_t *var, const char *valstr, boolean stealth)
|
||||||
found:
|
found:
|
||||||
if (client && execversion_enabled)
|
if (client && execversion_enabled)
|
||||||
{
|
{
|
||||||
if (var->revert.allocated)
|
|
||||||
{
|
|
||||||
Z_Free(var->revert.v.string);
|
|
||||||
var->revert.allocated = false; // the below value is not allocated in zone memory, don't try to free it!
|
|
||||||
}
|
|
||||||
|
|
||||||
var->revert.v.const_munge = var->PossibleValue[i].strvalue;
|
var->revert.v.const_munge = var->PossibleValue[i].strvalue;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue