Browse Source

Null pointer check in legacy Choose command

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

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

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

Loading…
Cancel
Save