New database release. (#1246)

* Refactored spell data loading.

* New database release.
This commit is contained in:
brotalnia
2018-01-15 20:49:18 +02:00
committed by GitHub
parent 8eb522cb58
commit e55b6c4074
110 changed files with 1974 additions and 1904 deletions
+4 -4
View File
@@ -1894,16 +1894,16 @@ void ScriptMgr::FillSpellSummary()
{
delete[] m_spellSummary;
m_spellSummary = new TSpellSummary[sSpellStore.GetNumRows()];
m_spellSummary = new TSpellSummary[sSpellMgr.GetMaxSpellId()];
DBCSpellEntry const* pTempSpell;
SpellEntry const* pTempSpell;
for (uint32 i = 0; i < sSpellStore.GetNumRows(); ++i)
for (uint32 i = 0; i < sSpellMgr.GetMaxSpellId(); ++i)
{
m_spellSummary[i].Effects = 0;
m_spellSummary[i].Targets = 0;
pTempSpell = sSpellStore.LookupEntry(i);
pTempSpell = sSpellMgr.GetSpellEntry(i);
// This spell doesn't exist
if (!pTempSpell)
continue;