diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-31 21:34:38 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-31 21:34:38 +0100 |
commit | 251b2aaeb8410ba7d800b5caa6685af30e69874e (patch) | |
tree | 6d3d9f06043fed9c1ecc3536dd3d47930f72a36f | |
parent | Merge branch 'lcs-dev' into lcs (diff) | |
parent | fix realloc (diff) | |
download | re3-251b2aaeb8410ba7d800b5caa6685af30e69874e.tar re3-251b2aaeb8410ba7d800b5caa6685af30e69874e.tar.gz re3-251b2aaeb8410ba7d800b5caa6685af30e69874e.tar.bz2 re3-251b2aaeb8410ba7d800b5caa6685af30e69874e.tar.lz re3-251b2aaeb8410ba7d800b5caa6685af30e69874e.tar.xz re3-251b2aaeb8410ba7d800b5caa6685af30e69874e.tar.zst re3-251b2aaeb8410ba7d800b5caa6685af30e69874e.zip |
-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 4a2dfe00..773d3765 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -703,7 +703,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); |