From 412341ff631fd8c8aa73c37f514b1d1f42d3ef93 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Mon, 25 May 2015 13:27:55 +0100 Subject: [PATCH] Block & command item ids can sometime conflict #110 --- Assets/Fungus/Flowchart/Scripts/Flowchart.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Fungus/Flowchart/Scripts/Flowchart.cs b/Assets/Fungus/Flowchart/Scripts/Flowchart.cs index 59e4ec6e..597b5773 100644 --- a/Assets/Fungus/Flowchart/Scripts/Flowchart.cs +++ b/Assets/Fungus/Flowchart/Scripts/Flowchart.cs @@ -153,6 +153,7 @@ namespace Fungus { block.itemId = NextItemId(); } + usedIds.Add(block.itemId); } Command[] commands = GetComponentsInChildren(); @@ -163,6 +164,7 @@ namespace Fungus { command.itemId = NextItemId(); } + usedIds.Add(command.itemId); } }