summaryrefslogtreecommitdiffstats
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
parentfix UB and new renderer crashes (diff)
downloadre3-264d7d98d72dd89f8259fbedad56c42b5bdefd55.tar
re3-264d7d98d72dd89f8259fbedad56c42b5bdefd55.tar.gz
re3-264d7d98d72dd89f8259fbedad56c42b5bdefd55.tar.bz2
re3-264d7d98d72dd89f8259fbedad56c42b5bdefd55.tar.lz
re3-264d7d98d72dd89f8259fbedad56c42b5bdefd55.tar.xz
re3-264d7d98d72dd89f8259fbedad56c42b5bdefd55.tar.zst
re3-264d7d98d72dd89f8259fbedad56c42b5bdefd55.zip
Diffstat (limited to '')
-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);