mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 05:25:14 +00:00
Fix piranha plant bubble crash on ARM
This commit is contained in:
parent
63ee843b60
commit
7fe3d281c6
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ void bhv_piranha_plant_bubble_loop(void) {
|
|||
f32 scale = 0;
|
||||
s32 i;
|
||||
s32 frame = parent->header.gfx.animInfo.animFrame;
|
||||
if (frame < 0) {
|
||||
frame = 0;
|
||||
}
|
||||
// TODO: rename lastFrame if it is inaccurate
|
||||
if (parent->header.gfx.animInfo.curAnim == NULL) { return; }
|
||||
s32 lastFrame = parent->header.gfx.animInfo.curAnim->loopEnd - 2;
|
||||
|
|
Loading…
Reference in a new issue