[7225] Correctly clear trainer and vendor data.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zhenya 2009-02-03 02:00:55 +03:00 committed by VladimirMangos
parent 6786ed1610
commit a1eaf1af6f
3 changed files with 3 additions and 2 deletions

View file

@ -50,7 +50,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