mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 06:18:59 +00:00
fix realloc
This commit is contained in:
parent
da378077f7
commit
5de4e88d7a
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ void CTweakVars::Add(CTweakVar *var)
|
||||||
TweakVarsListSize = 0;
|
TweakVarsListSize = 0;
|
||||||
}
|
}
|
||||||
if(TweakVarsListSize > 63)
|
if(TweakVarsListSize > 63)
|
||||||
TweakVarsList = (CTweakVar**) realloc(TweakVarsList, (TweakVarsListSize + 1) * sizeof(*var));
|
TweakVarsList = (CTweakVar**) realloc(TweakVarsList, (TweakVarsListSize + 1) * sizeof(CTweakVar*));
|
||||||
|
|
||||||
TweakVarsList[TweakVarsListSize++] = var;
|
TweakVarsList[TweakVarsListSize++] = var;
|
||||||
// TweakVarsList.push_back(var);
|
// TweakVarsList.push_back(var);
|
||||||
|
|
Loading…
Reference in a new issue