mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
Fix crash when parsing an empty action list for DECORATE
This commit is contained in:
parent
a31bd78abe
commit
80d49d6bb9
1 changed files with 4 additions and 0 deletions
|
@ -361,6 +361,10 @@ endofstate:
|
|||
|
||||
void AddImplicitReturn(FxSequence *code, const PPrototype *proto, FScanner &sc)
|
||||
{
|
||||
if (code == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (proto == NULL || proto->ReturnTypes.Size() == 0)
|
||||
{ // Returns nothing. Good. We can safely add an implied return.
|
||||
code->Add(new FxReturnStatement(NULL, sc));
|
||||
|
|
Loading…
Reference in a new issue