aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/AdventureMapHandler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-03-14 15:41:02 +0100
committerShauren <shauren.trinity@gmail.com>2021-03-14 15:41:02 +0100
commit41c342113fa2ae18a3616ea3ccfa28b139d9a99f (patch)
tree37af7202eb816dca5ba35f0f0d2df601c6c37bbd /src/server/game/Handlers/AdventureMapHandler.cpp
parent2d84912ce92e1ac30efd6548ca98cb8f894f5268 (diff)
Fix build
Diffstat (limited to 'src/server/game/Handlers/AdventureMapHandler.cpp')
-rw-r--r--src/server/game/Handlers/AdventureMapHandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Handlers/AdventureMapHandler.cpp b/src/server/game/Handlers/AdventureMapHandler.cpp
index e75425be870..d25651e8ce0 100644
--- a/src/server/game/Handlers/AdventureMapHandler.cpp
+++ b/src/server/game/Handlers/AdventureMapHandler.cpp
@@ -18,6 +18,7 @@
#include "WorldSession.h"
#include "AdventureMapPackets.h"
#include "DB2Stores.h"
+#include "ObjectMgr.h"
#include "Player.h"
void WorldSession::HandleAdventureMapStartQuest(WorldPackets::AdventureMap::AdventureMapStartQuest& startQuest)
@@ -28,7 +29,7 @@ void WorldSession::HandleAdventureMapStartQuest(WorldPackets::AdventureMap::Adve
auto itr = std::find_if(sAdventureMapPOIStore.begin(), sAdventureMapPOIStore.end(), [&](AdventureMapPOIEntry const* adventureMap)
{
- return adventureMap->QuestID == startQuest.QuestID && _player->MeetPlayerCondition(adventureMap->PlayerConditionID);
+ return adventureMap->QuestID == uint32(startQuest.QuestID) && _player->MeetPlayerCondition(adventureMap->PlayerConditionID);
});
if (itr == sAdventureMapPOIStore.end())