Fix #8742: access violation in vehicle_update_sound_params

This commit is contained in:
Ted John 2019-02-24 15:49:03 +00:00 committed by Michael Steenbeek
parent 81d41895d2
commit d31e92e652
2 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,7 @@
- Fix: [#8647] Marketing campaigns check for entry fees below £1 (original bug).
- Fix: [#8653] Crash when peeps attempt to enter a ride with no vehicles.
- Fix: [#8720] Desync due to boats colliding with ghost pieces.
- Fix: [#8742] Access violation in vehicle_update_sound_params.
- Improved: [#2940] Allow mouse-dragging to set patrol area (Singleplayer only).
- Improved: [#7730] Draw extreme vertical and lateral Gs red in the ride window's graph tab.
- Improved: [#7930] Automatically create folders for custom content.

View File

@ -879,6 +879,9 @@ static void vehicle_update_sound_params(rct_vehicle* vehicle)
if (vehicle->sprite_left == LOCATION_NULL)
return;
if (g_music_tracking_viewport == nullptr)
return;
int16_t left = g_music_tracking_viewport->view_x;
int16_t bottom = g_music_tracking_viewport->view_y;
int16_t quarter_w = g_music_tracking_viewport->view_width / 4;