- 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
1 changed files with 1 additions and 1 deletions

View File

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