Fix crashes in ride with more than 12 cars per train

This commit is contained in:
Michael Steenbeek 2016-10-03 22:58:52 +02:00 committed by Ted John
parent 3cbf06c886
commit 52e5506d9a
1 changed files with 1 additions and 1 deletions

View File

@ -2272,7 +2272,7 @@ static void peep_update_ride_sub_state_0(rct_peep* peep){
}
uint8 car_array_size = 0xFF;
uint8 car_array[12];
uint8 car_array[255];
if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_13)){
if (ride->num_riders >= ride->operation_option)