mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11259] Move scheduled scripts counter to ScriptMgr
Also cleanup forward declarations.
This commit is contained in:
parent
dee6d712c4
commit
a6d155fc54
9 changed files with 33 additions and 33 deletions
|
|
@ -66,7 +66,9 @@ ScriptMgr::ScriptMgr() :
|
|||
m_pOnEffectDummyCreature(NULL),
|
||||
m_pOnEffectDummyGO(NULL),
|
||||
m_pOnEffectDummyItem(NULL),
|
||||
m_pOnAuraDummy(NULL)
|
||||
m_pOnAuraDummy(NULL),
|
||||
|
||||
m_scheduledScripts(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +79,7 @@ ScriptMgr::~ScriptMgr()
|
|||
|
||||
void ScriptMgr::LoadScripts(ScriptMapMap& scripts, const char* tablename)
|
||||
{
|
||||
if (sWorld.IsScriptScheduled()) // function don't must be called in time scripts use.
|
||||
if (IsScriptScheduled()) // function don't must be called in time scripts use.
|
||||
return;
|
||||
|
||||
sLog.outString("%s :", tablename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue