diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java b/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java index 5e5c8e7..1e81302 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/ai/LixfelPathplanner.java @@ -102,7 +102,7 @@ public class LixfelPathplanner { if(intermediate == null) return Collections.emptyList(); - List plan = plan(start, intermediate); + List plan = new ArrayList<>(plan(start, intermediate)); plan.add(destination); return plan;