[11330] Use ObjectGuid to store Totem guids instead of uint64 and fix related rare crash.

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
rsa 2011-04-11 22:45:25 +03:00 committed by Ambal
parent 735f086992
commit cd32dd9bfc
5 changed files with 9 additions and 15 deletions

View file

@ -5012,7 +5012,7 @@ SpellCastResult Spell::CheckCast(bool strict)
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && m_spellInfo->SpellIconID == 33)
{
// fire totems slot
if (!m_caster->GetTotemGUID(TOTEM_SLOT_FIRE))
if (m_caster->GetTotemGuid(TOTEM_SLOT_FIRE).IsEmpty())
return SPELL_FAILED_TOTEMS;
}
break;