mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Fix potentially uninitialized variable
This commit is contained in:
committed by
Michael Steenbeek
parent
b73c954362
commit
a2545d7050
@@ -7460,6 +7460,7 @@ loc_6DB41D:
|
|||||||
}
|
}
|
||||||
|
|
||||||
trackType = mapElement->properties.track.type;
|
trackType = mapElement->properties.track.type;
|
||||||
|
rideType = get_ride(mapElement->properties.track.ride_index)->type;
|
||||||
if (trackType != TRACK_ELEM_BRAKES) {
|
if (trackType != TRACK_ELEM_BRAKES) {
|
||||||
vehicle->target_seat_rotation = mapElement->properties.track.colour >> 4;
|
vehicle->target_seat_rotation = mapElement->properties.track.colour >> 4;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user