diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index e7180afd16..8dfe5d8f8e 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -1060,6 +1060,7 @@ FxExpression *FxFloatCast::Resolve(FCompileContext &ctx) if (basex->IsFloat()) { FxExpression *x = basex; + x->ValueType = ValueType; basex = nullptr; delete this; return x;