Core: Fix crash in ~ScriptMgr

Fixes: #854
Fixes: #918
Fixes: #917
This commit is contained in:
Machiavelli committed 2011-03-14 09:44:02 +01:00
1 parent 1eed7c53a9
commit 31a2c9b82b
3 files changed
+24 -16

No files matched your search

+4 -1
View File
@@ -760,7 +760,7 @@ class ScriptMgr
friend class ScriptObject;
ScriptMgr();
~ScriptMgr();
virtual ~ScriptMgr();
uint32 _scriptCount;
@@ -775,6 +775,9 @@ class ScriptMgr
void IncrementScriptCount() { ++_scriptCount; }
uint32 GetScriptCount() const { return _scriptCount; }
public: /* Unloading */
void Unload();
public: /* SpellScriptLoader */
void CreateSpellScripts(uint32 spell_id, std::list<SpellScript*>& script_vector);