Browse Source

Fixed NullReferenceException with nameText in SayDialog #517

master
Christopher 9 years ago
parent
commit
199f74ecba
  1. 2
      Assets/Fungus/Narrative/Scripts/SayDialog.cs

2
Assets/Fungus/Narrative/Scripts/SayDialog.cs

@ -136,7 +136,7 @@ namespace Fungus
// Start method of another component, so check that no image has been set yet. // Start method of another component, so check that no image has been set yet.
// Same for nameText. // Same for nameText.
if (nameText.text == "") if (nameText != null && nameText.text == "")
{ {
SetCharacterName("", Color.white); SetCharacterName("", Color.white);
} }

Loading…
Cancel
Save