mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- fixed: Completely empty if statements left the code generator in a broken state.
This commit is contained in:
parent
0b70df88d8
commit
7595343aaa
1 changed files with 2 additions and 1 deletions
|
@ -7946,7 +7946,8 @@ FxExpression *FxIfStatement::Resolve(FCompileContext &ctx)
|
|||
if (WhenTrue == nullptr && WhenFalse == nullptr)
|
||||
{ // We don't do anything either way, so disappear
|
||||
delete this;
|
||||
return nullptr;
|
||||
ScriptPosition.Message(MSG_WARNING, "empty if statement");
|
||||
return new FxNop(ScriptPosition);
|
||||
}
|
||||
|
||||
SAFE_RESOLVE(Condition, ctx);
|
||||
|
|
Loading…
Reference in a new issue