Core/AuctionHouse: Don't overflow mail attachments, send max 16 items per mail
Port From (https://github.com/TrinityCore/TrinityCore/commit/7e18255ee24f6c8b133f197120e18934cfa50395)
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Game
|
||||
[WorldPacketHandler(ClientOpcodes.SendMail)]
|
||||
void HandleSendMail(SendMail packet)
|
||||
{
|
||||
if (packet.Info.Attachments.Count > SharedConst.MaxMailItems) // client limit
|
||||
if (packet.Info.Attachments.Count > SharedConst.MaxClientMailItems) // client limit
|
||||
{
|
||||
GetPlayer().SendMailResult(0, MailResponseType.Send, MailResponseResult.TooManyAttachments);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user