From b5749963345d763de4f06dfa154d940c7ca3e6ab Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 21 Dec 2020 13:33:35 +0100 Subject: fix sizeof --- src/core/re3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/re3.cpp') 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); -- cgit v1.2.3