summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-21 13:33:35 +0100
committeraap <aap@papnet.eu>2020-12-21 13:33:35 +0100
commitb5749963345d763de4f06dfa154d940c7ca3e6ab (patch)
tree068181804b86b0cc3417534842cd66f3b5797eb3 /src
parentfix name shadowing (diff)
downloadre3-b5749963345d763de4f06dfa154d940c7ca3e6ab.tar
re3-b5749963345d763de4f06dfa154d940c7ca3e6ab.tar.gz
re3-b5749963345d763de4f06dfa154d940c7ca3e6ab.tar.bz2
re3-b5749963345d763de4f06dfa154d940c7ca3e6ab.tar.lz
re3-b5749963345d763de4f06dfa154d940c7ca3e6ab.tar.xz
re3-b5749963345d763de4f06dfa154d940c7ca3e6ab.tar.zst
re3-b5749963345d763de4f06dfa154d940c7ca3e6ab.zip
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 3f5e8f7d..d51e50ba 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -421,7 +421,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);