[9189] Fixed build error at *nix.

This commit is contained in:
VladimirMangos 2010-01-16 08:36:58 +03:00
parent 132b1cbabd
commit 6f703bab57
3 changed files with 25 additions and 8 deletions

View file

@ -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)