Core/Maps: Link instance map to LfgDungeons

Port From (https://github.com/TrinityCore/TrinityCore/commit/81276097648abe484d720c8ee9e3e77173825c8c)
This commit is contained in:
Hondacrx
2024-11-10 17:37:17 -05:00
parent 9cb6940f7b
commit 06979399fb
5 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ namespace Game
player.m_InstanceValid = true;
Map oldMap = player.GetMap();
Map newMap = loc.InstanceId.HasValue ? Global.MapMgr.FindMap(loc.Location.GetMapId(), loc.InstanceId.Value) : Global.MapMgr.CreateMap(loc.Location.GetMapId(), GetPlayer());
Map newMap = loc.InstanceId.HasValue ? Global.MapMgr.FindMap(loc.Location.GetMapId(), loc.InstanceId.Value) : Global.MapMgr.CreateMap(loc.Location.GetMapId(), GetPlayer(), loc.LfgDungeonsId);
ITransport transport = player.GetTransport();
if (transport != null)