Core/Unit: Change aura proc pair container to vector

This commit is contained in:
ariel- authored and roc13x committed 2017-05-04 00:59:01 +01:00
1 parent 44a779ad38
commit b3eb7c121f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -10658,7 +10658,7 @@ void Unit::GetProcAurasTriggeredOnEvent(AuraApplicationProcContainer& aurasTrigg
if (uint8 procEffectMask = aurApp->GetBase()->IsProcTriggeredOnEvent(aurApp, eventInfo, now))
{
aurApp->GetBase()->PrepareProcToTrigger(aurApp, eventInfo, now);
aurasTriggeringProc.emplace_back(std::make_pair(procEffectMask, aurApp));
aurasTriggeringProc.emplace_back(procEffectMask, aurApp);
}
}
}
@@ -10670,7 +10670,7 @@ void Unit::GetProcAurasTriggeredOnEvent(AuraApplicationProcContainer& aurasTrigg
if (uint8 procEffectMask = itr->second->GetBase()->IsProcTriggeredOnEvent(itr->second, eventInfo, now))
{
itr->second->GetBase()->PrepareProcToTrigger(itr->second, eventInfo, now);
aurasTriggeringProc.emplace_back(std::make_pair(procEffectMask, itr->second));
aurasTriggeringProc.emplace_back(procEffectMask, itr->second);
}
}
}
+1 -1
View File
@@ -1293,7 +1293,7 @@ class TC_GAME_API Unit : public WorldObject
typedef std::list<AuraApplication *> AuraApplicationList;
typedef std::array<DiminishingReturn, DIMINISHING_MAX> Diminishing;
typedef std::deque<std::pair<uint8 /*procEffectMask*/, AuraApplication*>> AuraApplicationProcContainer;
typedef std::vector<std::pair<uint8 /*procEffectMask*/, AuraApplication*>> AuraApplicationProcContainer;
typedef std::map<uint8, AuraApplication*> VisibleAuraMap;