Core/Misc: move scheduled scripts counter to ScriptMgr (which is more logical, isn't it?)

This commit is contained in:
zergtmn
2011-04-13 12:07:20 +06:00
committed by Azazel
parent e196dd80bd
commit 1551b8a011
9 changed files with 34 additions and 33 deletions
+2 -2
View File
@@ -4907,12 +4907,12 @@ void ObjectMgr::LoadScripts(ScriptsType type)
if (tableName.empty())
return;
if (sWorld->IsScriptScheduled()) // function don't must be called in time scripts use.
if (sScriptMgr->IsScriptScheduled()) // function cannot be called when scripts are in use.
return;
sLog->outString("Loading %s...", tableName.c_str());
scripts->clear(); // need for reload support
scripts->clear(); // need for reload support
bool isSpellScriptTable = (type == SCRIPTS_SPELL);
char buff[125];