Core/Pooling: Quest pooling rewrite

Port From (https://github.com/TrinityCore/TrinityCore/commit/51fbda4223442635a35d3225c0797d0151ea7051)
This commit is contained in:
hondacrx
2022-01-04 17:35:29 -05:00
parent 9e61335fe8
commit ed761eb400
18 changed files with 618 additions and 542 deletions
+2 -2
View File
@@ -1428,7 +1428,7 @@ namespace Game
{
foreach (var pair in mGameEventCreatureQuests[eventId])
{
var CreatureQuestMap = Global.ObjectMgr.GetCreatureQuestRelationMap();
var CreatureQuestMap = Global.ObjectMgr.GetCreatureQuestRelationMapHACK();
if (activate) // Add the pair(id, quest) to the multimap
CreatureQuestMap.Add(pair.Item1, pair.Item2);
else
@@ -1442,7 +1442,7 @@ namespace Game
}
foreach (var pair in mGameEventGameObjectQuests[eventId])
{
var GameObjectQuestMap = Global.ObjectMgr.GetGOQuestRelationMap();
var GameObjectQuestMap = Global.ObjectMgr.GetGOQuestRelationMapHACK();
if (activate) // Add the pair(id, quest) to the multimap
GameObjectQuestMap.Add(pair.Item1, pair.Item2);
else