mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +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)
|
if (WhenTrue == nullptr && WhenFalse == nullptr)
|
||||||
{ // We don't do anything either way, so disappear
|
{ // We don't do anything either way, so disappear
|
||||||
delete this;
|
delete this;
|
||||||
return nullptr;
|
ScriptPosition.Message(MSG_WARNING, "empty if statement");
|
||||||
|
return new FxNop(ScriptPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
SAFE_RESOLVE(Condition, ctx);
|
SAFE_RESOLVE(Condition, ctx);
|
||||||
|
|
Loading…
Reference in a new issue