delete of lua spell takes place via remove_all_spells flag in these conditions
This commit is contained in:
parent
c4002c363e
commit
6f8f5016a6
@ -153,7 +153,7 @@ void LuaInterface::DestroySpells() {
|
||||
RemoveCurrentSpell(inner_itr->first, inner_itr->second, false, true, false);
|
||||
MSpellDelete.unlock();
|
||||
lua_close(inner_itr->first);
|
||||
safe_delete(cur_spell);
|
||||
// spell is deleted in this context by SpellProcess::DeleteSpell because removing_all_spells = true
|
||||
}
|
||||
|
||||
Mutex* mutex = GetSpellScriptMutex(spell_script_itr->first.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user