fix UB in train

This commit is contained in:
Sonic Dreamcaster 2024-11-16 14:05:55 -03:00
parent 0704b7d62f
commit 07da6dacc0

View File

@ -4227,6 +4227,10 @@ void Macbeth_Actor207_Update(Actor207* this) {
s16 spC6; s16 spC6;
u8 i; u8 i;
#ifdef AVOID_UB
sp374 = 0.0f;
#endif
switch (this->state) { switch (this->state) {
case 0: case 0:
Macbeth_8019A198(this); Macbeth_8019A198(this);