From c7c9b8710e2f5fd780771efee76acbdaa896d864 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 14 Jul 2013 17:05:13 +1200 Subject: [PATCH] Fix cached paths in PathFinder. Fixes #3557. --- OpenRA.Mods.RA/Move/PathFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Move/PathFinder.cs b/OpenRA.Mods.RA/Move/PathFinder.cs index 037f312cfb..959e2cecf7 100755 --- a/OpenRA.Mods.RA/Move/PathFinder.cs +++ b/OpenRA.Mods.RA/Move/PathFinder.cs @@ -52,7 +52,7 @@ namespace OpenRA.Mods.RA.Move Log.Write("debug", "Actor {0} asked for a path from {1} tick(s) ago", self.ActorID, world.FrameNumber - cached.tick); if (world.FrameNumber - cached.tick > MaxPathAge) CachedPaths.Remove(cached); - return emptyPath; + return new List(cached.result); } var mi = self.Info.Traits.Get();