From bb6015bc96ada3dfb3fdf99e0912467850ee873a 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 35582aa4298..f088bc2430c 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 {