mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-05 06:45:56 +00:00
fix realloc
This commit is contained in:
parent
2e37001881
commit
264d7d98d7
|
@ -713,7 +713,7 @@ void CTweakVars::Add(CTweakVar *var)
|
|||
TweakVarsListSize = 0;
|
||||
}
|
||||
if(TweakVarsListSize > 63)
|
||||
TweakVarsList = (CTweakVar**) realloc(TweakVarsList, (TweakVarsListSize + 1) * sizeof(*var));
|
||||
TweakVarsList = (CTweakVar**) realloc(TweakVarsList, (TweakVarsListSize + 1) * sizeof(CTweakVar*));
|
||||
|
||||
TweakVarsList[TweakVarsListSize++] = var;
|
||||
// TweakVarsList.push_back(var);
|
||||
|
|
Loading…
Reference in a new issue