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:
hondacrx
2021-12-27 17:13:54 -05:00
parent 4463c4a3d5
commit 855c9611e0
+6
View File
@@ -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; }