From b32fec8c520cc02e7115e6dd6f276d34acc18642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sun, 24 Apr 2016 20:10:31 +0200 Subject: [PATCH] Stargate's isSpawned attribute is now properly initialized --- cicaprojekt/Stargate.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cicaprojekt/Stargate.java b/cicaprojekt/Stargate.java index c365dc7..1bb37d0 100644 --- a/cicaprojekt/Stargate.java +++ b/cicaprojekt/Stargate.java @@ -12,6 +12,10 @@ public class Stargate { private Wall currentWall; + private Stargate() { + isSpawned = false; + } + public static void init() { yellowStargate.other = blueStargate; blueStargate.other = yellowStargate;