mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[10862] Fixed not show and lost mail items in returned expire mails.
Also * Use typename for mail item info vector. * Include tools/characters_mail_items_cleanup.sql for cleanup lost mail items. It also included as sql update part. Sql update also fix receiver for stored in DB expired mail items. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
f72e2ccee8
commit
c7205a6837
10 changed files with 44 additions and 13 deletions
|
|
@ -395,7 +395,7 @@ void WorldSession::HandleMailReturnToSender(WorldPacket & recv_data )
|
|||
|
||||
if(m->HasItems())
|
||||
{
|
||||
for(std::vector<MailItemInfo>::iterator itr2 = m->items.begin(); itr2 != m->items.end(); ++itr2)
|
||||
for(MailItemInfoVec::iterator itr2 = m->items.begin(); itr2 != m->items.end(); ++itr2)
|
||||
{
|
||||
if(Item *item = pl->GetMItem(itr2->item_guid))
|
||||
draft.AddItem(item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue