mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix potentially uninitialized variable
This commit is contained in:
parent
b73c954362
commit
a2545d7050
|
@ -7460,6 +7460,7 @@ loc_6DB41D:
|
|||
}
|
||||
|
||||
trackType = mapElement->properties.track.type;
|
||||
rideType = get_ride(mapElement->properties.track.ride_index)->type;
|
||||
if (trackType != TRACK_ELEM_BRAKES) {
|
||||
vehicle->target_seat_rotation = mapElement->properties.track.colour >> 4;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue