From 95961e4a74af4996d4770c5ded9e4ed34af41d63 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Thu, 24 Mar 2016 21:54:12 +0000 Subject: [PATCH] according to GCC, no it isn't - fixes a warning --- .../src/shared/combat/CombatEngine.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/game/server/application/SwgGameServer/src/shared/combat/CombatEngine.cpp b/game/server/application/SwgGameServer/src/shared/combat/CombatEngine.cpp index 4f4269cd..2123bc1d 100755 --- a/game/server/application/SwgGameServer/src/shared/combat/CombatEngine.cpp +++ b/game/server/application/SwgGameServer/src/shared/combat/CombatEngine.cpp @@ -679,18 +679,6 @@ void CombatEngine::alter(TangibleObject & object) if (object.isAuthoritative()) { - // if the object is a creature, get it's attributes - Attributes::Value currentAttribs[Attributes::NumberOfAttributes]; - CreatureObject * const critter = object.asCreatureObject (); - if (critter != nullptr) - { - for (int i = 0; i < Attributes::NumberOfAttributes; ++i) - currentAttribs[i] = critter->getAttribute(i); - } - else - { - // @todo: handle damage to objects - } // update the object // to guard against the list changing while we are iterating over it, // we will iterate using index rather than iterator @@ -705,7 +693,7 @@ void CombatEngine::alter(TangibleObject & object) object.applyDamage(damageData[i]); } } - }//lint !e550 Symbol 'currentAttribs' (line 2653) not accessed // yes it is + } else { TangibleController * const tangibleController = object.getController()->asTangibleController();