mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Fixed error handling in vector by scalar multiplication
https://forum.zdoom.org/viewtopic.php?t=57089
This commit is contained in:
parent
925274ca0c
commit
71b70d74a9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue