diff --git a/GoldWars/GoldWars/Entities/Base.swift b/GoldWars/GoldWars/Entities/Base.swift index 87c6f8b..ba1bbdc 100644 --- a/GoldWars/GoldWars/Entities/Base.swift +++ b/GoldWars/GoldWars/Entities/Base.swift @@ -50,7 +50,7 @@ class Base: GKEntity{ base.unitCount += units self.component(ofType: TeamComponent.self)?.unitcountLabel.text = "\(self.unitCount)" - if playerMoveType == .TxnMove { + if base.component(ofType: TeamComponent.self)?.unitcountLabel.text != "" { base.component(ofType: TeamComponent.self)?.unitcountLabel.text = "\(base.unitCount)" }