mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10611] Made some values const
Signed-off-by: DasBlub <dasblub@gmail.com>
This commit is contained in:
parent
61102e3b16
commit
47d971c7f9
59 changed files with 64 additions and 64 deletions
|
|
@ -106,7 +106,7 @@ Unit* DynamicObject::GetCaster() const
|
|||
return ObjectAccessor::GetUnit(*this, GetCasterGUID());
|
||||
}
|
||||
|
||||
void DynamicObject::Update(uint32 p_time)
|
||||
void DynamicObject::Update(const uint32 p_time)
|
||||
{
|
||||
// caster can be not in world at time dynamic object update, but dynamic object not yet deleted in Unit destructor
|
||||
Unit* caster = GetCaster();
|
||||
|
|
@ -168,7 +168,7 @@ void DynamicObject::Delay(int32 delaytime)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (foundAura)
|
||||
{
|
||||
++iter;
|
||||
|
|
@ -210,4 +210,4 @@ bool DynamicObject::IsFriendlyTo( Unit const* unit ) const
|
|||
return owner->IsFriendlyTo(unit);
|
||||
else
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue