Permalink
Browse files

- 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
  • Loading branch information...
alexey-lysiuk committed Feb 6, 2019
1 parent 13a3f1a commit 78c0b7f2300c6b8c859e39cbc04c1b7718a9524e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripting/backend/codegen.h
@@ -2106,7 +2106,7 @@ class FxNop : public FxExpression
: FxExpression(EFX_Nop, p)
{
isresolved = true;
ValueType = TypeError;
ValueType = TypeVoid;
}
ExpEmit Emit(VMFunctionBuilder *build)
{

0 comments on commit 78c0b7f

Please sign in to comment.