Skip to content

Commit

Permalink
UB fix in Macbeth_Actor207_Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdcer committed Nov 16, 2024
1 parent f1c2dd7 commit d3c5da6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/overlays/ovl_i5/fox_ma.c
Original file line number Diff line number Diff line change
Expand Up @@ -4227,6 +4227,10 @@ void Macbeth_Actor207_Update(Actor207* this) {
s16 spC6;
u8 i;

#ifdef AVOID_UB
sp374 = 0.0f;
#endif

switch (this->state) {
case 0:
Macbeth_8019A198(this);
Expand Down

0 comments on commit d3c5da6

Please sign in to comment.