Bugfix: WF stationary platforms given static collision despite being able to delete themselves (#510)

Resulted in a memory leak and stale object referencing that impacted Mario's positioning
This commit is contained in:
Gregory Heskett
2022-10-19 12:38:58 -04:00
committed by GitHub
parent 6291c77a18
commit fc6a6055d9

View File

@@ -1679,9 +1679,9 @@ const BehaviorScript bhvWfSolidTowerPlatform[] = {
BEGIN(OBJ_LIST_SURFACE),
OR_INT(oFlags, (OBJ_FLAG_SET_FACE_YAW_TO_MOVE_YAW | OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE)),
LOAD_COLLISION_DATA(wf_seg7_collision_platform),
CALL_NATIVE(load_object_static_model),
BEGIN_LOOP(),
CALL_NATIVE(bhv_wf_solid_tower_platform_loop),
CALL_NATIVE(load_object_collision_model),
END_LOOP(),
};