Add safety to K_PlayerWeight
This commit is contained in:
parent
2acf3725e3
commit
7cdb502874
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue