Core/Calendar: Fix issue with invite status being set to the wrong invite
Port From (https://github.com/TrinityCore/TrinityCore/commit/71b2f8c6ab26ef7683100fdf288813e87f6bbf73)
This commit is contained in:
@@ -675,6 +675,12 @@ namespace Game
|
||||
Note = note;
|
||||
}
|
||||
|
||||
~CalendarInvite()
|
||||
{
|
||||
if (InviteId != 0 && EventId != 0)
|
||||
Global.CalendarMgr.FreeInviteId(InviteId);
|
||||
}
|
||||
|
||||
public ulong InviteId { get; set; }
|
||||
public ulong EventId { get; set; }
|
||||
public ObjectGuid InviteeGuid { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user