- added null check to the dialogue lines array so that it doesn't crash if the text is never word wrapped.

This commit is contained in:
Christoph Oelckers 2019-11-30 22:04:26 +01:00
parent d420b0ab05
commit 6023b69693

View file

@ -280,7 +280,7 @@ class ConversationMenu : Menu
override void OnDestroy()
{
mDialogueLines.Destroy();
if (mDialogueLines != null) mDialogueLines.Destroy();
SetMusicVolume (1);
Super.OnDestroy();
}