summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2021-01-31 15:01:46 +0100
committerGitHub <noreply@github.com>2021-01-31 15:01:46 +0100
commit264d7d98d72dd89f8259fbedad56c42b5bdefd55 (patch)
tree6425936887628427bc17e133362c816f3c983814 /src
parent2e37001881eab8932dafcfd345fd9bb641bb70f4 (diff)
fix realloc
Diffstat (limited to 'src')
-rw-r--r--src/core/re3.cpp2
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);