Delete spell_chain query result more early.

This commit is contained in:
VladimirMangos 2009-01-04 23:13:02 +03:00
parent 4b9af01d42
commit 76997d823e

View file

@ -1597,6 +1597,8 @@ void SpellMgr::LoadSpellChains()
++count; ++count;
} while( result->NextRow() ); } while( result->NextRow() );
delete result;
// additional integrity checks // additional integrity checks
for(SpellChainMap::iterator i = mSpellChains.begin(); i != mSpellChains.end(); ++i) for(SpellChainMap::iterator i = mSpellChains.begin(); i != mSpellChains.end(); ++i)
{ {
@ -1645,8 +1647,6 @@ void SpellMgr::LoadSpellChains()
} }
} }
delete result;
sLog.outString(); sLog.outString();
sLog.outString( ">> Loaded %u spell chain records", count ); sLog.outString( ">> Loaded %u spell chain records", count );
} }