Browse Source

Block & command item ids can sometime conflict #110

master
chrisgregan 10 years ago
parent
commit
412341ff63
  1. 2
      Assets/Fungus/Flowchart/Scripts/Flowchart.cs

2
Assets/Fungus/Flowchart/Scripts/Flowchart.cs

@ -153,6 +153,7 @@ namespace Fungus
{ {
block.itemId = NextItemId(); block.itemId = NextItemId();
} }
usedIds.Add(block.itemId);
} }
Command[] commands = GetComponentsInChildren<Command>(); Command[] commands = GetComponentsInChildren<Command>();
@ -163,6 +164,7 @@ namespace Fungus
{ {
command.itemId = NextItemId(); command.itemId = NextItemId();
} }
usedIds.Add(command.itemId);
} }
} }

Loading…
Cancel
Save