aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-09 10:48:14 -0500
committermegamage <none@none>2009-05-09 10:48:14 -0500
commit6592e99f4aa8972452ee5fd426893f2cf832e291 (patch)
treec6fff6cda83001d606d4f26ef69539f93da628ab /src/game/GameObject.cpp
parent3b4e4b82159eff3411297e8e300cbc9a7bf7a1b5 (diff)
*Some update of spell target selection.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 2f1014eb769..1a2ed5fb6db 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -198,7 +198,7 @@ void GameObject::Update(uint32 /*p_time*/)
{
// Arming Time for GAMEOBJECT_TYPE_TRAP (6)
Unit* owner = GetOwner();
- if (owner && ((Player*)owner)->isInCombat())
+ if (owner && owner->isInCombat())
m_cooldownTime = time(NULL) + GetGOInfo()->trap.startDelay;
m_lootState = GO_READY;
break;