diff --git a/src/main/java/pacmanGame/Ghost.java b/src/main/java/pacmanGame/Ghost.java index 40bc53d..a7acce0 100644 --- a/src/main/java/pacmanGame/Ghost.java +++ b/src/main/java/pacmanGame/Ghost.java @@ -21,6 +21,6 @@ public class Ghost { } public void spawn() { - this.position = gameManager.map.ghostSpawns[ghostNumber]; + this.position = gameManager.map.ghostSpawns[ghostNumber].Clone(); } }