Browse Source

Tolerate null commands in command list

Should never happen, but if it does just ignore it and carry on.
master
chrisgregan 10 years ago
parent
commit
a88537c0f3
  1. 5
      Assets/Fungus/Flowchart/Scripts/Block.cs
  2. 9
      Assets/Fungus/UI/Editor.meta

5
Assets/Fungus/Flowchart/Scripts/Block.cs

@ -71,6 +71,11 @@ namespace Fungus
int index = 0;
foreach (Command command in commandList)
{
if (command == null)
{
continue;
}
command.parentBlock = this;
command.commandIndex = index++;
}

9
Assets/Fungus/UI/Editor.meta

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 7ebd428fad0b74343aa1bf752f8f05a1
folderAsset: yes
timeCreated: 1438002256
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save