[7225] Correctly clear trainer and vendor data. Author: zhenya
--HG-- branch : trunk
This commit is contained in:
@@ -55,7 +55,7 @@ void TrainerSpellData::Clear()
|
|||||||
{
|
{
|
||||||
for (TrainerSpellList::iterator itr = spellList.begin(); itr != spellList.end(); ++itr)
|
for (TrainerSpellList::iterator itr = spellList.begin(); itr != spellList.end(); ++itr)
|
||||||
delete (*itr);
|
delete (*itr);
|
||||||
spellList.empty();
|
spellList.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
TrainerSpell const* TrainerSpellData::Find(uint32 spell_id) const
|
TrainerSpell const* TrainerSpellData::Find(uint32 spell_id) const
|
||||||
|
|||||||
@@ -350,6 +350,7 @@ struct VendorItemData
|
|||||||
{
|
{
|
||||||
for (VendorItemList::iterator itr = m_items.begin(); itr != m_items.end(); ++itr)
|
for (VendorItemList::iterator itr = m_items.begin(); itr != m_items.end(); ++itr)
|
||||||
delete (*itr);
|
delete (*itr);
|
||||||
|
m_items.clear();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7224"
|
#define REVISION_NR "7225"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|||||||
Reference in New Issue
Block a user