[7671] Wrong type casts not fixed in [7667].

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Mordred 2009-04-15 02:16:03 +04:00 committed by VladimirMangos
parent c62543fa52
commit 5020fcd3f1
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ void PetAI::MoveInLineOfSight(Unit *u)
void PetAI::AttackStart(Unit *u)
{
if( inCombat || !u || (m_creature->isPet() && ((Pet&)m_creature).getPetType() == MINI_PET) )
if( inCombat || !u || (m_creature->isPet() && ((Pet*)m_creature)->getPetType() == MINI_PET) )
return;
if(m_creature->Attack(u,true))
@ -274,7 +274,7 @@ void PetAI::UpdateAI(const uint32 diff)
m_creature->AddCreatureSpellCooldown(spell->m_spellInfo->Id);
if (m_creature->isPet())
((Pet&)m_creature).CheckLearning(spell->m_spellInfo->Id);
((Pet*)m_creature)->CheckLearning(spell->m_spellInfo->Id);
spell->prepare(&targets);
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7670"
#define REVISION_NR "7671"
#endif // __REVISION_NR_H__