diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index bd8fcef9c..2af0f9ae7 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -3302,6 +3302,7 @@ FxExpression *FxPow::Resolve(FCompileContext& ctx) right = (new FxFloatCast(right))->Resolve(ctx); ABORT(right); } + ValueType = TypeFloat64; if (left->isConstant() && right->isConstant()) { double v1 = static_cast(left)->GetValue().GetFloat();