summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-21 13:33:54 +0100
committeraap <aap@papnet.eu>2020-12-21 13:33:54 +0100
commit1d7bdce0efb39ce977002fbc903f2b1be6b8ca04 (patch)
treed297423f726bf01453033a844237d61869af846c /src/core
parentbotched last commit (diff)
downloadre3-1d7bdce0efb39ce977002fbc903f2b1be6b8ca04.tar
re3-1d7bdce0efb39ce977002fbc903f2b1be6b8ca04.tar.gz
re3-1d7bdce0efb39ce977002fbc903f2b1be6b8ca04.tar.bz2
re3-1d7bdce0efb39ce977002fbc903f2b1be6b8ca04.tar.lz
re3-1d7bdce0efb39ce977002fbc903f2b1be6b8ca04.tar.xz
re3-1d7bdce0efb39ce977002fbc903f2b1be6b8ca04.tar.zst
re3-1d7bdce0efb39ce977002fbc903f2b1be6b8ca04.zip
Diffstat (limited to 'src/core')
-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 5974175a..acb6caa2 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -410,7 +410,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(*var));
TweakVarsList[TweakVarsListSize++] = var;
// TweakVarsList.push_back(var);