diff --git a/fast64_internal/f3d/f3d_bleed.py b/fast64_internal/f3d/f3d_bleed.py index e67a35607..874a036a2 100644 --- a/fast64_internal/f3d/f3d_bleed.py +++ b/fast64_internal/f3d/f3d_bleed.py @@ -583,7 +583,7 @@ def add_reset_cmd(self, cmd: GbiMacro, reset_cmd_dict: dict[GbiMacro]): cmd_type = type(cmd) l: SPSetOtherMode = reset_cmd_dict.get("G_SETOTHERMODE_L") h: SPSetOtherMode = reset_cmd_dict.get("G_SETOTHERMODE_H") - if l or h: # should never be reached, but if we reach it we are prepared + if l or h: # should never be reached, but if we reach it we are prepared existing_mode = next((mode.startswith(cmd.mode_prefix) for mode in h.flagList + l.flagList), None) if h and cmd.is_othermodeh: if existing_mode: