- changed type of Nop expression to void

Control flow statements with constant condition no longer cause misleading fatal errors in ZScript

https://forum.zdoom.org/viewtopic.php?t=63566
This commit is contained in:
alexey.lysiuk 2019-02-06 12:09:14 +02:00
parent 13a3f1aa6e
commit 78c0b7f230

View file

@ -2106,7 +2106,7 @@ public:
: FxExpression(EFX_Nop, p)
{
isresolved = true;
ValueType = TypeError;
ValueType = TypeVoid;
}
ExpEmit Emit(VMFunctionBuilder *build)
{