aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGacko <gacko28@gmx.de>2014-05-06 19:06:59 +0200
committerGacko <gacko28@gmx.de>2014-05-06 19:06:59 +0200
commit111bbb3620093f7db9bb94c37fcbc97c0a45c4c3 (patch)
tree098cbf698dcb5041e15f88acc07ac91ec5a7e603
parent41d9364b164aca67d66134a565890d2f8d49fbd0 (diff)
Remove unnecessary check in previous fix
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index ea27d7add1f..8051c757bf2 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -561,8 +561,7 @@ void GameObject::Update(uint32 diff)
CastSpell(NULL, goInfo->trap.spellId);
SetLootState(GO_JUST_DEACTIVATED);
}
- else if (m_lootStateUnitGUID)
- if (Unit* target = Unit::GetUnit(*this, m_lootStateUnitGUID))
+ else if (Unit* target = Unit::GetUnit(*this, m_lootStateUnitGUID))
{
// Some traps do not have a spell but should be triggered
if (goInfo->trap.spellId)