diff options
author | megamage <none@none> | 2009-06-06 20:22:14 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-06 20:22:14 -0500 |
commit | 1c1ead52dd85c51538ac5f26846ba67f951ba31b (patch) | |
tree | a02c3e705b088ebe4cf40144465e5e8e88f9059c /src/game/DynamicObject.cpp | |
parent | 54d3b86ffa2a650e08cc9dfda45895c97ba30b26 (diff) |
[7967] Removed unused field. Author: tomrus88
--HG--
branch : trunk
Diffstat (limited to 'src/game/DynamicObject.cpp')
-rw-r--r-- | src/game/DynamicObject.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/DynamicObject.cpp b/src/game/DynamicObject.cpp index 8969e4dfe04..f5fe91a3e11 100644 --- a/src/game/DynamicObject.cpp +++ b/src/game/DynamicObject.cpp @@ -75,7 +75,7 @@ bool DynamicObject::Create( uint32 guidlow, Unit *caster, uint32 spellId, uint32 SetInstanceId(caster->GetInstanceId()); WorldObject::_Create(guidlow, HIGHGUID_DYNAMICOBJECT, caster->GetMapId(), caster->GetPhaseMask()); - Relocate(x,y,z,0); + Relocate(x, y, z, 0); if(!IsPositionValid()) { @@ -98,7 +98,6 @@ bool DynamicObject::Create( uint32 guidlow, Unit *caster, uint32 spellId, uint32 m_radius = radius; m_effIndex = effIndex; m_spellId = spellId; - m_casterGuid = caster->GetGUID(); m_updateTimer = 0; return true; } @@ -106,7 +105,7 @@ bool DynamicObject::Create( uint32 guidlow, Unit *caster, uint32 spellId, uint32 Unit* DynamicObject::GetCaster() const { // can be not found in some cases - return ObjectAccessor::GetUnit(*this,m_casterGuid); + return ObjectAccessor::GetUnit(*this, GetCasterGUID()); } void DynamicObject::Update(uint32 p_time) @@ -153,7 +152,7 @@ void DynamicObject::Delete() void DynamicObject::Delay(int32 delaytime) { m_aliveDuration -= delaytime; - for(AffectedSet::iterator iunit= m_affected.begin();iunit != m_affected.end();++iunit) + for(AffectedSet::iterator iunit= m_affected.begin(); iunit != m_affected.end(); ++iunit) if (*iunit) (*iunit)->DelayAura(m_spellId, GetCaster()->GetGUID() , delaytime); } |