From 53ec91d64ff38b2a07bee40cef345d2648b07cd6 Mon Sep 17 00:00:00 2001 From: Evan Hemsley <2342303+ehemsley@users.noreply.github.com> Date: Fri, 28 Jun 2019 21:48:04 -0700 Subject: [PATCH] fix cycle detector exception string printing backwards --- encompass-cs/WorldBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encompass-cs/WorldBuilder.cs b/encompass-cs/WorldBuilder.cs index f1331fc..68f1560 100644 --- a/encompass-cs/WorldBuilder.cs +++ b/encompass-cs/WorldBuilder.cs @@ -129,7 +129,7 @@ namespace Encompass { var cycles = engineGraph.SimpleCycles(); var errorString = "Cycle(s) found in Engines: "; - foreach (var cycle in cycles) + foreach (var cycle in cycles.Reverse()) { errorString += "\n" + string.Join(" -> ", cycle.Select((engine) => engine.GetType().Name)) +