mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 02:27:21 +00:00
[Crash] Add Checks for valid pointers or fix existing. (#3164)
This commit is contained in:
1 parent
4c2271ff69
commit
0d509a7f3a
19 files changed
+228
-179
No files matched your search
+3
-2
@@ -2835,8 +2835,9 @@ bool NPC::Death(Mob* killer_mob, int64 damage, uint16 spell, EQ::skills::SkillTy
|
||||
if (emote_id) {
|
||||
oos->CastToNPC()->DoNPCEmote(EQ::constants::EmoteEventTypes::KilledNPC, emote_id);
|
||||
}
|
||||
|
||||
killer_mob->TrySpellOnKill(killed_level, spell);
|
||||
if (killer_mob) {
|
||||
killer_mob->TrySpellOnKill(killed_level, spell);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user