fix sizeof
This commit is contained in:
parent
e696d770be
commit
1d7bdce0ef
@ -410,7 +410,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(*var));
|
||||||
|
|
||||||
TweakVarsList[TweakVarsListSize++] = var;
|
TweakVarsList[TweakVarsListSize++] = var;
|
||||||
// TweakVarsList.push_back(var);
|
// TweakVarsList.push_back(var);
|
||||||
|
Loading…
Reference in New Issue
Block a user