mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fixed crash in bhv_bowser_loop
This commit is contained in:
parent
33ba20a5f9
commit
a359b28bb4
1 changed files with 5 additions and 3 deletions
|
|
@ -1246,9 +1246,11 @@ void bhv_bowser_loop(void) {
|
|||
int angleToPlayer = obj_angle_to_object(o, player);
|
||||
|
||||
// look for animation difference and override
|
||||
struct Animation* anim = o->oAnimations[networkBowserAnimationIndex];
|
||||
if (anim != NULL &&o->header.gfx.unk38.curAnim != anim) {
|
||||
geo_obj_init_animation(&o->header.gfx, &anim);
|
||||
if (o->oAnimations != NULL && networkBowserAnimationIndex <= 26) {
|
||||
struct Animation* anim = o->oAnimations[networkBowserAnimationIndex];
|
||||
if (anim != NULL && o->header.gfx.unk38.curAnim != anim) {
|
||||
geo_obj_init_animation(&o->header.gfx, &anim);
|
||||
}
|
||||
}
|
||||
|
||||
s16 angleToMario; // AngleToMario from Bowser's perspective
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue