Core/Calendar: Align max amount of Players to be invited to Client limits

Limit the max amount of Players to be invited to a Calendar event to 100, same limit as the one in the Client
This commit is contained in:
jackpoz
2014-05-17 21:22:28 +02:00
parent a62f95e4c2
commit b6048f89f7

View File

@@ -259,7 +259,10 @@ void WorldSession::HandleCalendarAddEvent(WorldPacket& recvData)
if (inviteCount > 1)
trans = CharacterDatabase.BeginTransaction();
for (uint32 i = 0; i < inviteCount; ++i)
// client limits the amount of players to be invited to 100
const int MaxPlayerInvites = 100;
for (uint32 i = 0; i < inviteCount && i < MaxPlayerInvites; ++i)
{
uint64 invitee = 0;
uint8 status = 0;