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 | |
parent | fix UB and new renderer crashes (diff) | |
download | re3-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.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); |