1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Remove some uncommon variables and break unions (#20440)

This commit is contained in:
Duncan
2023-06-27 06:34:06 +01:00
committed by GitHub
parent 3b7975f4a0
commit d40102aa9d
7 changed files with 41 additions and 34 deletions

View File

@@ -465,15 +465,7 @@ public:
case INTENT_ACTION_RIDE_PAINT_RESET_VEHICLE:
{
auto rideIndex = intent.GetUIntExtra(INTENT_EXTRA_RIDE_ID);
auto w = WindowFindByNumber(WindowClass::Ride, rideIndex);
if (w != nullptr)
{
if (w->page == 4) // WINDOW_RIDE_PAGE_COLOUR
{
w->vehicleIndex = 0;
}
w->Invalidate();
}
WindowRidePaintResetVehicle(RideId::FromUnderlying(rideIndex));
break;
}