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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user