Core/Commands: Restore instance management commands

This commit is contained in:
Shauren
2021-01-19 22:48:46 +01:00
parent 4ce1c6cdf4
commit ab12e77cf7
11 changed files with 175 additions and 105 deletions

View File

@@ -2781,10 +2781,16 @@ InstanceMap::InstanceMap(uint32 id, time_t expiry, uint32 InstanceId, Difficulty
sWorldStateMgr->SetValue(WS_TEAM_IN_INSTANCE_ALLIANCE, InstanceTeam == TEAM_ALLIANCE, false, this);
sWorldStateMgr->SetValue(WS_TEAM_IN_INSTANCE_HORDE, InstanceTeam == TEAM_HORDE, false, this);
if (i_instanceLock)
i_instanceLock->SetInUse(true);
}
InstanceMap::~InstanceMap()
{
if (i_instanceLock)
i_instanceLock->SetInUse(false);
delete i_data;
delete i_scenario;
}