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:
hondacrx
2020-05-22 13:54:15 -04:00
parent a09e6aa9ae
commit 9cd6f64e86
3 changed files with 67 additions and 28 deletions
+1 -1
View File
@@ -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;