[Fix] Add crash checks for certain PlayerEventLogs (#4761)

This commit is contained in:
Mitch Freeman
2025-03-07 18:17:36 -04:00
committed by GitHub
parent 7ab32af4dc
commit 9ee095b354
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -16974,7 +16974,7 @@ void Client::Handle_OP_GuildTributeDonateItem(const EQApplicationPacket *app)
SendGuildTributeDonateItemReply(in, favor);
if(player_event_logs.IsEventEnabled(PlayerEvent::GUILD_TRIBUTE_DONATE_ITEM)) {
if(inst && player_event_logs.IsEventEnabled(PlayerEvent::GUILD_TRIBUTE_DONATE_ITEM)) {
auto e = PlayerEvent::GuildTributeDonateItem{ .item_id = inst->GetID(),
.augment_1_id = inst->GetAugmentItemID(0),
.augment_2_id = inst->GetAugmentItemID(1),