From d336a83355036f5d0fadef387965f6f147c1eb49 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 29 May 2019 13:24:03 +0300 Subject: [PATCH] - fixed code generation for ternary operator with vector result types https://forum.zdoom.org/viewtopic.php?t=64831 --- src/scripting/backend/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index 46f1a6686c..fcd749f50d 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -4835,7 +4835,7 @@ ExpEmit FxConditional::Emit(VMFunctionBuilder *build) // If this is a local variable we need another register for the result. if (trueop.Fixed) { - out = ExpEmit(build, trueop.RegType); + out = ExpEmit(build, trueop.RegType, trueop.RegCount); build->Emit(truex->ValueType->GetMoveOp(), out.RegNum, trueop.RegNum, 0); } else out = trueop;