[9786] Fixed crash at drop vendor items (anorther way).

This commit is contained in:
VladimirMangos 2010-04-24 02:40:11 +04:00
parent 7b675219e7
commit eb66482020
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ bool VendorItemData::RemoveItem( uint32 item_id )
// can have many examples // can have many examples
if((*i)->item == item_id) if((*i)->item == item_id)
{ {
m_items.erase(i++); i = m_items.erase(i);
found = true; found = true;
} }
else else

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9785" #define REVISION_NR "9786"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__