From e85024943e5e5f879748e4165db77d9ffbb585e4 Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Tue, 23 Jan 2024 16:20:19 +0100 Subject: [PATCH] Fixed uninitialized position attribute in Ghost --- src/main/java/pacmanGame/Ghost.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/pacmanGame/Ghost.java b/src/main/java/pacmanGame/Ghost.java index 82f0578..dc8a7d9 100644 --- a/src/main/java/pacmanGame/Ghost.java +++ b/src/main/java/pacmanGame/Ghost.java @@ -6,6 +6,7 @@ public class Ghost { public Ghost(GameManager gameManager) { this.gameManager = gameManager; + this.position = new Vector2(-1, -1); } }