From 2f66ac2c11eb2a247660233c556516aacd19a2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sat, 11 Mar 2017 22:11:15 +0100 Subject: [PATCH] Fix errorneous access to sound params in vehicle_update_sound_params --- src/openrct2/ride/vehicle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/ride/vehicle.c b/src/openrct2/ride/vehicle.c index 29652422c4..3b73375a35 100644 --- a/src/openrct2/ride/vehicle.c +++ b/src/openrct2/ride/vehicle.c @@ -685,7 +685,7 @@ static void vehicle_update_sound_params(rct_vehicle* vehicle) gVehicleSoundParamsListEnd++; } rct_vehicle_sound_params* j = gVehicleSoundParamsListEnd - 1; - while (j >= i) { + while (j > i) { j--; *(j + 1) = *j; }