[7225] Correctly clear trainer and vendor data. Author: zhenya

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-03 15:01:18 -06:00
parent f8fa463e7e
commit adfa5b0ab5
3 changed files with 3 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ void TrainerSpellData::Clear()
{
for (TrainerSpellList::iterator itr = spellList.begin(); itr != spellList.end(); ++itr)
delete (*itr);
spellList.empty();
spellList.clear();
}
TrainerSpell const* TrainerSpellData::Find(uint32 spell_id) const

View File

@@ -350,6 +350,7 @@ struct VendorItemData
{
for (VendorItemList::iterator itr = m_items.begin(); itr != m_items.end(); ++itr)
delete (*itr);
m_items.clear();
}
};

View File

@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7224"
#define REVISION_NR "7225"
#endif // __REVISION_NR_H__