Skip to content

Commit

Permalink
- added null check to the dialogue lines array so that it doesn't cra…
Browse files Browse the repository at this point in the history
…sh if the text is never word wrapped.
  • Loading branch information
coelckers committed Nov 30, 2019
1 parent d420b0a commit 6023b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/ui/menu/conversationmenu.zs
Expand Up @@ -280,7 +280,7 @@ class ConversationMenu : Menu

override void OnDestroy()
{
mDialogueLines.Destroy();
if (mDialogueLines != null) mDialogueLines.Destroy();
SetMusicVolume (1);
Super.OnDestroy();
}
Expand Down

0 comments on commit 6023b69

Please sign in to comment.