1
0

delete of lua spell takes place via remove_all_spells flag in these conditions

This commit is contained in:
Emagi 2024-09-08 16:40:02 -04:00
parent c4002c363e
commit 6f8f5016a6

View File

@ -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());