Nodes - Ensure there always is an exit node

This commit is contained in:
Robert committed 2021-08-26 23:37:31 +02:00
1 parent c4340c3c97
commit 3e201336f1
4 files changed
+16 -6

No files matched your search

@@ -234,7 +234,7 @@ namespace Artemis.Core
Script.Save();
Entity.IsEnabled = IsEnabled;
Entity.NodeScript = Script?.Entity;
Entity.NodeScript = Script.Entity.Nodes.Any() ? Script.Entity : null;
}
#endregion