From aac6e6584222e3296e3599901970500f2bd6e037 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 1 May 2017 22:44:58 +0200 Subject: [PATCH] - fixed: FxActionSpecialCall did not resolve float to int casts. --- src/scripting/backend/codegen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index 35582aa429..f088bc2430 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -8481,6 +8481,12 @@ FxExpression *FxActionSpecialCall::Resolve(FCompileContext& ctx) if (ArgList[i]->ValueType->GetRegType() == REGT_FLOAT /* lax */) { ArgList[i] = new FxIntCast(ArgList[i], ctx.FromDecorate); + ArgList[i] = ArgList[i]->Resolve(ctx); + if (ArgList[i] == nullptr) + { + delete this; + return nullptr; + } } else {