diff --git a/GoldWars/GoldWars/Scenes/GameScene.swift b/GoldWars/GoldWars/Scenes/GameScene.swift index 3158ca6..9bb380c 100644 --- a/GoldWars/GoldWars/Scenes/GameScene.swift +++ b/GoldWars/GoldWars/Scenes/GameScene.swift @@ -86,7 +86,7 @@ class GameScene: SKScene{ if let baseEntity = entity as? Base { if baseEntity.ownershipPlayer == GKLocalPlayer.local { entityManager.add(Modal(modaltype: .BaseDetails, - base: entity as! Base, + base: entity as? Base, anchorPoint: CGPoint(x: self.size.width / 2 , y: self.size.height / 2), gameScene: self, currentDraggedBase: currentDraggedBase, touchLocation: touchLocation, collisionBase: collisionBase))