mirror of https://github.com/OpenRCT2/OpenRCT2.git
Handle all enum values in switches
Add 'default' cases to a few enums that were not otherwise handling all possible enum values. This wasn't a problem before because the variables we were switching on were not actually enum types, but now that they are, Clang is warning us about the non-covered cases.
This commit is contained in:
parent
3089781883
commit
a30e154388
|
@ -576,6 +576,8 @@ void rct_peep::Tick128UpdateGuest(int32_t index)
|
|||
case PEEP_THOUGHT_TYPE_RUNNING_OUT:
|
||||
peep_head_for_nearest_ride_type(this, RIDE_TYPE_CASH_MACHINE);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -681,6 +683,8 @@ void rct_peep::Tick128UpdateGuest(int32_t index)
|
|||
}
|
||||
peep_update_hunger(this);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
loc_68F9F3:
|
||||
|
@ -5530,6 +5534,8 @@ void rct_peep::UpdateQueuing()
|
|||
UpdateCurrentActionSpriteType();
|
||||
Invalidate();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue