mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10114] Store associated InstanceSave for dungeon map in Map object
This commit is contained in:
parent
6f4481a591
commit
67a7892075
9 changed files with 89 additions and 62 deletions
|
|
@ -552,7 +552,7 @@ bool ChatHandler::HandleGonameCommand(const char* args)
|
|||
InstanceGroupBind *gBind = group ? group->GetBoundInstance(target) : NULL;
|
||||
// if no bind exists, create a solo bind
|
||||
if (!gBind)
|
||||
if (InstanceSave *save = sInstanceSaveMgr.GetInstanceSave(target->GetInstanceId()))
|
||||
if (InstanceSave *save = target->GetMap()->GetInstanceSave())
|
||||
_player->BindToInstance(save, !save->CanReset());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue