mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Fixed crash in bhv_chain_chomp_chain_part_update()
This commit is contained in:
parent
0ad1d87260
commit
e31a616103
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ void bhv_chain_chomp_chain_part_update(void) {
|
||||||
if (!sync_object_is_initialized(o->oSyncID)) {
|
if (!sync_object_is_initialized(o->oSyncID)) {
|
||||||
sync_object_init(o, SYNC_DISTANCE_ONLY_DEATH);
|
sync_object_init(o, SYNC_DISTANCE_ONLY_DEATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!o->parentObj) { return; }
|
||||||
|
|
||||||
if (o->parentObj->activeFlags == ACTIVE_FLAG_DEACTIVATED || o->parentObj->oAction == CHAIN_CHOMP_ACT_UNLOAD_CHAIN) {
|
if (o->parentObj->activeFlags == ACTIVE_FLAG_DEACTIVATED || o->parentObj->oAction == CHAIN_CHOMP_ACT_UNLOAD_CHAIN) {
|
||||||
obj_mark_for_deletion(o);
|
obj_mark_for_deletion(o);
|
||||||
network_send_object(o);
|
network_send_object(o);
|
||||||
|
|
Loading…
Reference in a new issue