1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

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:
Richard Fine
2019-01-03 12:06:47 +00:00
parent 3089781883
commit a30e154388

View File

@@ -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;
}
}
}