Fix cached paths in PathFinder. Fixes #3557.

This commit is contained in:
Paul Chote
2013-07-14 17:05:13 +12:00
parent 57a27eb948
commit c7c9b8710e

View File

@@ -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<CPos>(cached.result);
}
var mi = self.Info.Traits.Get<MobileInfo>();