From a88537c0f3831ee52d169f13cbb28c1af7e51dbd Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 4 Aug 2015 11:38:34 +0100 Subject: [PATCH] Tolerate null commands in command list Should never happen, but if it does just ignore it and carry on. --- Assets/Fungus/Flowchart/Scripts/Block.cs | 5 +++++ Assets/Fungus/UI/Editor.meta | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 Assets/Fungus/UI/Editor.meta diff --git a/Assets/Fungus/Flowchart/Scripts/Block.cs b/Assets/Fungus/Flowchart/Scripts/Block.cs index 94bb56d9..b61f4f54 100644 --- a/Assets/Fungus/Flowchart/Scripts/Block.cs +++ b/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++; } diff --git a/Assets/Fungus/UI/Editor.meta b/Assets/Fungus/UI/Editor.meta new file mode 100644 index 00000000..0f6bb93d --- /dev/null +++ b/Assets/Fungus/UI/Editor.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 7ebd428fad0b74343aa1bf752f8f05a1 +folderAsset: yes +timeCreated: 1438002256 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: