Sanity check pokey body parts

This commit is contained in:
MysterD 2020-09-23 09:16:09 -07:00
parent 81f2102bb0
commit 2b5c830cc4

View file

@ -45,6 +45,11 @@ void bhv_pokey_body_part_update(void) {
s16 offsetAngle;
f32 baseHeight;
if (o->parentObj == NULL || o->parentObj->behavior != bhvPokey || o->parentObj->activeFlags == ACTIVE_FLAG_DEACTIVATED) {
obj_mark_for_deletion(o);
return;
}
if (obj_update_standard_actions(3.0f)) {
if (o->parentObj->oAction == POKEY_ACT_UNLOAD_PARTS) {
obj_mark_for_deletion(o);