Core/Misc: Remove redundant implicit template types in some std::make_pair calls. Should allow the build in Visual Studio 2011
This commit is contained in:
@@ -174,7 +174,7 @@ void PetAI::UpdateAI(const uint32 diff)
|
|||||||
|
|
||||||
if (spell->CanAutoCast(target))
|
if (spell->CanAutoCast(target))
|
||||||
{
|
{
|
||||||
targetSpellStore.push_back(std::make_pair<Unit*, Spell*>(target, spell));
|
targetSpellStore.push_back(std::make_pair(target, spell));
|
||||||
spellUsed = true;
|
spellUsed = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -186,7 +186,7 @@ void PetAI::UpdateAI(const uint32 diff)
|
|||||||
{
|
{
|
||||||
Spell* spell = new Spell(me, spellInfo, TRIGGERED_NONE, 0);
|
Spell* spell = new Spell(me, spellInfo, TRIGGERED_NONE, 0);
|
||||||
if (spell->CanAutoCast(me->getVictim()))
|
if (spell->CanAutoCast(me->getVictim()))
|
||||||
targetSpellStore.push_back(std::make_pair<Unit*, Spell*>(me->getVictim(), spell));
|
targetSpellStore.push_back(std::make_pair(me->getVictim(), spell));
|
||||||
else
|
else
|
||||||
delete spell;
|
delete spell;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user