Core/Game: Move scheduled map scripts counter methods into MapManager

* Since those have nothing to do with core scripts and are
  not wished inside the ScriptMgr

(cherry picked from commit 59e3cf82ac)
This commit is contained in:
Naios
2016-04-02 22:37:51 +02:00
parent 518692b4cb
commit 775e0764e8
8 changed files with 20 additions and 21 deletions

View File

@@ -64,7 +64,7 @@ Map::~Map()
}
if (!m_scriptSchedule.empty())
sScriptMgr->DecreaseScheduledScriptCount(m_scriptSchedule.size());
sMapMgr->DecreaseScheduledScriptCount(m_scriptSchedule.size());
MMAP::MMapFactory::createOrGetMMapManager()->unloadMapInstance(GetId(), i_InstanceId);
}