- 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 committed by drfrag
parent fd4473d7d2
commit d4a71e3d20

View file

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