mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9189] Fixed build error at *nix.
This commit is contained in:
parent
132b1cbabd
commit
6f703bab57
3 changed files with 25 additions and 8 deletions
|
|
@ -8442,6 +8442,20 @@ Pet* Unit::FindGuardianWithEntry(uint32 entry)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
Unit* Unit::_GetTotem(uint8 slot) const
|
||||
{
|
||||
return GetTotem(slot);
|
||||
}
|
||||
|
||||
Totem* Unit::GetTotem( uint8 slot ) const
|
||||
{
|
||||
if(slot >= MAX_TOTEM)
|
||||
return NULL;
|
||||
|
||||
Creature *totem = GetMap()->GetCreature(m_TotemSlot[slot]);
|
||||
return totem->isTotem() ? (Totem*)totem : NULL;
|
||||
}
|
||||
|
||||
void Unit::UnsummonAllTotems()
|
||||
{
|
||||
for (int8 i = 0; i < MAX_TOTEM; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue