aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/DungeonFinding/LFGMgr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-05-22 13:46:45 +0200
committerShauren <shauren.trinity@gmail.com>2025-05-22 13:46:45 +0200
commitb7122c2f6a0c6eef9d58439aac4090ddcee24a2e (patch)
tree3e0ae343ab01f36887c28a7274ae2cfc24167697 /src/server/game/DungeonFinding/LFGMgr.cpp
parenteb032a30731fc833836ca7fcff8b538bdf74196e (diff)
Core/PacketIO: Migration to PacketUtilities bit/string operations part 3
Diffstat (limited to 'src/server/game/DungeonFinding/LFGMgr.cpp')
-rw-r--r--src/server/game/DungeonFinding/LFGMgr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp
index ae8b6da8bee..b174dc0a7ab 100644
--- a/src/server/game/DungeonFinding/LFGMgr.cpp
+++ b/src/server/game/DungeonFinding/LFGMgr.cpp
@@ -467,7 +467,7 @@ void LFGMgr::JoinLfg(Player* player, uint8 roles, LfgDungeonSet& dungeons)
else if (plrg->HasAura(9454)) // check Freeze debuff
{
joinData.result = LFG_JOIN_NO_SLOTS;
- joinData.playersMissingRequirement.push_back(&plrg->GetName());
+ joinData.playersMissingRequirement.push_back(plrg->GetName());
}
++memberCount;
players.insert(plrg->GetGUID());
@@ -817,7 +817,7 @@ void LFGMgr::UpdateRoleCheck(ObjectGuid gguid, ObjectGuid guid /* = ObjectGuid::
@param[in] players Set of players to check their dungeon restrictions
@param[out] lockMap Map of players Lock status info of given dungeons (Empty if dungeons is not empty)
*/
-void LFGMgr::GetCompatibleDungeons(LfgDungeonSet* dungeons, GuidSet const& players, LfgLockPartyMap* lockMap, std::vector<std::string const*>* playersMissingRequirement, bool isContinue)
+void LFGMgr::GetCompatibleDungeons(LfgDungeonSet* dungeons, GuidSet const& players, LfgLockPartyMap* lockMap, std::vector<std::string_view>* playersMissingRequirement, bool isContinue)
{
lockMap->clear();
@@ -859,7 +859,7 @@ void LFGMgr::GetCompatibleDungeons(LfgDungeonSet* dungeons, GuidSet const& playe
dungeonsToRemove.insert(dungeonId);
(*lockMap)[guid][dungeonId] = it2->second;
- playersMissingRequirement->push_back(&player->GetName());
+ playersMissingRequirement->push_back(player->GetName());
}
}
}