diff options
author | shfil <filip.gawin@zoho.com> | 2021-01-31 15:00:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 15:00:36 +0100 |
commit | 5de4e88d7a7637d9e0f806855a8f0d66b4f2f276 (patch) | |
tree | f6a510c62b8322a11292acafbbc266d1c2c466c2 | |
parent | da378077f78a1773a6c4bf5a768c6ebb5a7c75b5 (diff) |
fix realloc
-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 37b2cdf0..474a4644 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -690,7 +690,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); |