Skip to content
Permalink
Browse files

- added null check to the dialogue lines array so that it doesn't cra…

…sh if the text is never word wrapped.
  • Loading branch information
coelckers committed Nov 30, 2019
1 parent d420b0a commit 6023b696936f22897dca42a166612dd8323eb05a
Showing with 1 addition and 1 deletion.
  1. +1 −1 wadsrc/static/zscript/ui/menu/conversationmenu.zs
@@ -280,7 +280,7 @@ class ConversationMenu : Menu

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

0 comments on commit 6023b69

Please sign in to comment.
You can’t perform that action at this time.