1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix potentially uninitialized variable

This commit is contained in:
X123M3-256
2017-07-11 18:57:30 +01:00
committed by Michael Steenbeek
parent b73c954362
commit a2545d7050

View File

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