From de5929d0702386194103ed01f0fc890176c8fcc8 Mon Sep 17 00:00:00 2001 From: Aldin Duraki Date: Tue, 19 May 2020 15:53:07 +0200 Subject: [PATCH] * Fix trying to add fire sprite node to existing component --- GoldWars/GoldWars/Entities/EntityManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GoldWars/GoldWars/Entities/EntityManager.swift b/GoldWars/GoldWars/Entities/EntityManager.swift index 82b37d9..e17a264 100644 --- a/GoldWars/GoldWars/Entities/EntityManager.swift +++ b/GoldWars/GoldWars/Entities/EntityManager.swift @@ -119,9 +119,9 @@ class EntityManager { position: (base.component(ofType: DefaultBaseComponent.self)?.spriteNode.position)! ) ) + scene.addChild(base.component(ofType: TeamComponent.self)!.fire) } base.changeOwnership = false - scene.addChild(base.component(ofType: TeamComponent.self)!.fire) } } }