Add safety to K_PlayerWeight

This commit is contained in:
NepDisk 2025-09-13 08:48:36 -04:00
parent 2acf3725e3
commit 7cdb502874

View file

@ -481,6 +481,8 @@ fixed_t K_GetMobjWeight(mobj_t *mobj, mobj_t *against)
weight = K_PlayerWeight(mobj, against);
break;
case MT_BUBBLESHIELD:
if (!mobj->target)
break;
weight = K_PlayerWeight(mobj->target, against);
break;
case MT_FALLINGROCK: