[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
@@ -1569,7 +1569,7 @@ void Corpse::LootCorpseItem(Client *c, const EQApplicationPacket *app)
}
}
if (player_event_logs.IsEventEnabled(PlayerEvent::LOOT_ITEM) && !IsPlayerCorpse()) {
if (inst && player_event_logs.IsEventEnabled(PlayerEvent::LOOT_ITEM) && !IsPlayerCorpse()) {
auto e = PlayerEvent::LootItemEvent{
.item_id = inst->GetItem()->ID,
.item_name = inst->GetItem()->Name,