From 71b70d74a9c2550f44c8ebdd405452bf7e3d71f8 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 1 Jul 2017 12:37:31 +0300 Subject: [PATCH] Fixed error handling in vector by scalar multiplication https://forum.zdoom.org/viewtopic.php?t=57089 --- src/scripting/backend/codegen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index f1d30d7c4..4a1cc7d77 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -3071,6 +3071,7 @@ FxExpression *FxMulDiv::Resolve(FCompileContext& ctx) } } ValueType = left->ValueType; + break; } else if (right->IsVector() && left->IsNumeric()) { @@ -3085,8 +3086,9 @@ FxExpression *FxMulDiv::Resolve(FCompileContext& ctx) } } ValueType = right->ValueType; + break; } - break; + // Incompatible operands, intentional fall-through default: // Vector modulus is not permitted