[11796] Fix build in VS11 Developer Preview

This commit is contained in:
zergtmn 2011-09-18 00:13:18 +06:00
parent 4efca9aada
commit 3cb907051b
6 changed files with 23 additions and 32 deletions

View file

@ -244,7 +244,7 @@ void PetAI::UpdateAI(const uint32 diff)
if (inCombat && !m_creature->hasUnitState(UNIT_STAT_FOLLOW) && spell->CanAutoCast(m_creature->getVictim()))
{
targetSpellStore.push_back(std::make_pair<Unit*, Spell*>(m_creature->getVictim(), spell));
targetSpellStore.push_back(TargetSpellList::value_type(m_creature->getVictim(), spell));
continue;
}
else
@ -260,7 +260,7 @@ void PetAI::UpdateAI(const uint32 diff)
if (spell->CanAutoCast(Target))
{
targetSpellStore.push_back(std::make_pair<Unit*, Spell*>(Target, spell));
targetSpellStore.push_back(TargetSpellList::value_type(Target, spell));
spellUsed = true;
break;
}