diff options
author | shfil <filip.gawin@zoho.com> | 2021-01-31 15:01:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 15:01:46 +0100 |
commit | 264d7d98d72dd89f8259fbedad56c42b5bdefd55 (patch) | |
tree | 6425936887628427bc17e133362c816f3c983814 /src/core/re3.cpp | |
parent | 2e37001881eab8932dafcfd345fd9bb641bb70f4 (diff) |
fix realloc
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r-- | src/core/re3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 87aca59c..4b828171 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -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); |