Core/Maps: Link instance map to LfgDungeons

This commit is contained in:
Shauren
2024-10-05 11:56:02 +02:00
parent 086632d871
commit 8127609764
7 changed files with 21 additions and 12 deletions

View File

@@ -77,7 +77,7 @@ void WorldSession::HandleMoveWorldportAck()
Map* oldMap = player->GetMap();
Map* newMap = loc.InstanceId ?
sMapMgr->FindMap(loc.Location.GetMapId(), *loc.InstanceId) :
sMapMgr->CreateMap(loc.Location.GetMapId(), GetPlayer());
sMapMgr->CreateMap(loc.Location.GetMapId(), GetPlayer(), loc.LfgDungeonsId);
if (TransportBase* transport = player->GetTransport())
transport->RemovePassenger(player);