From 45d3b58cc61d689a42e86427aade357ed7e4169e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 21 Jan 2017 13:26:26 +0100 Subject: [PATCH] - fixed redundant variable declaration shadowing an outer one. --- src/scripting/codegeneration/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/codegeneration/codegen.cpp b/src/scripting/codegeneration/codegen.cpp index ff2d3f8eb8..cb5944ade4 100644 --- a/src/scripting/codegeneration/codegen.cpp +++ b/src/scripting/codegeneration/codegen.cpp @@ -8133,7 +8133,7 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx) if (ArgList[i]->ValueType == TypeName || ArgList[i]->ValueType == TypeSound) { - FxExpression* x = new FxStringCast(ArgList[i]); + x = new FxStringCast(ArgList[i]); x = x->Resolve(ctx); } else x = ArgList[i];