Core/Spells: Fixed accessing freed memory after reloading spell_area

This commit is contained in:
Shauren authored and Aokromes committed 2017-12-03 17:12:31 +01:00
1 parent 84abf3a1a6
commit b8ca6a9045
1 file changed
+2
+2
View File
@@ -2394,9 +2394,11 @@ void SpellMgr::LoadSpellAreas()
uint32 oldMSTime = getMSTime();
mSpellAreaMap.clear(); // need for reload case
mSpellAreaForAreaMap.clear();
mSpellAreaForQuestMap.clear();
mSpellAreaForQuestEndMap.clear();
mSpellAreaForAuraMap.clear();
mSpellAreaForQuestAreaMap.clear();
// 0 1 2 3 4 5 6 7 8 9
QueryResult result = WorldDatabase.Query("SELECT spell, area, quest_start, quest_start_status, quest_end_status, quest_end, aura_spell, racemask, gender, autocast FROM spell_area");