diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Server/Packets/MailPackets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Server/Packets/MailPackets.cpp b/src/server/game/Server/Packets/MailPackets.cpp index ffb85167ead..47db7120e76 100644 --- a/src/server/game/Server/Packets/MailPackets.cpp +++ b/src/server/game/Server/Packets/MailPackets.cpp @@ -157,7 +157,7 @@ void WorldPackets::Mail::MailListResult::AddMail(::Mail const* mail, Player* pla return; MailListEntry packetEntry(mail, player); - if (_worldPacket.size() + packetEntry.GetPacketSize() >= std::numeric_limits<int16>::max()) + if (_worldPacket.size() + packetEntry.GetPacketSize() >= std::size_t(std::numeric_limits<int16>::max())) { _maxPacketSizeReached = true; return; |
