mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-26 15:31:03 +00:00
Merge branch 'fix-invalid-banana-chain' into 'master'
Fix crash accessing removed banana chain Closes #1229 See merge request KartKrew/Kart!2194
This commit is contained in:
commit
342b6fd659
1 changed files with 1 additions and 1 deletions
|
|
@ -1729,7 +1729,7 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
|
|||
{
|
||||
if (target->movedir != 0 && target->movedir < (UINT16)target->target->player->itemamount)
|
||||
{
|
||||
if (target->target->hnext)
|
||||
if (target->target->hnext && !P_MobjWasRemoved(target->target->hnext))
|
||||
K_KillBananaChain(target->target->hnext, inflictor, source);
|
||||
target->target->player->itemamount = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue