1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Fix errorneous access to sound params in vehicle_update_sound_params

This commit is contained in:
Michał Janiszewski
2017-03-11 22:11:15 +01:00
parent 2fe134fd5f
commit 2f66ac2c11

View File

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