mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix crashes when P_DamageMobj was naively passed a removed source
This commit is contained in:
parent
6b980cb1c7
commit
290b97500a
1 changed files with 1 additions and 1 deletions
|
|
@ -2698,7 +2698,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
if (damagetype != DMG_SPECTATOR && target->player && target->player->spectator)
|
||||
return false;
|
||||
|
||||
if (source && source->player && source->player->spectator)
|
||||
if (!P_MobjWasRemoved(source) && source->player && source->player->spectator)
|
||||
return false;
|
||||
|
||||
if (((damagetype & DMG_TYPEMASK) == DMG_STING)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue