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
1 changed files with 1 additions and 0 deletions

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