Browse Source

Null pointer check in legacy Choose command

master
chrisgregan 10 years ago
parent
commit
e053ef100b
  1. 3
      Assets/Fungus/Narrative/Deprecated/Choose.cs

3
Assets/Fungus/Narrative/Deprecated/Choose.cs

@ -177,9 +177,12 @@ namespace Fungus
options.Clear(); options.Clear();
showBasicGUI = false; showBasicGUI = false;
Stop(); Stop();
if (option.targetBlock != null)
{
option.targetBlock.Execute(); option.targetBlock.Execute();
} }
} }
}
GUILayout.EndVertical(); GUILayout.EndVertical();

Loading…
Cancel
Save