Skip to content

Commit

Permalink
- fix uncaught exception that rarely occurred with the intermission s…
Browse files Browse the repository at this point in the history
…creen that would vm-abort out from any attempt to enter a level
  • Loading branch information
madame-rachelle committed Nov 12, 2022
1 parent fc7bb4a commit d388d19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wadsrc/static/zscript/ui/intermission.zs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ class IntermissionScreenJob : ScreenJob

override void OnDestroy()
{
controller.Destroy();
if (controller)
controller.Destroy();
Super.OnDestroy();
}
}
Expand Down

0 comments on commit d388d19

Please sign in to comment.