1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Check for nullptr explicitly (#15458)

This commit is contained in:
Hielke Morsink
2021-09-24 20:05:50 +02:00
committed by GitHub
parent e5de2adc4f
commit 53c22c9b4b
24 changed files with 70 additions and 70 deletions

View File

@@ -806,7 +806,7 @@ void window_scroll_to_location(rct_window* w, const CoordsXYZ& coords)
{
assert(w != nullptr);
window_unfollow_sprite(w);
if (w->viewport)
if (w->viewport != nullptr)
{
int16_t height = tile_element_height(coords);
if (coords.z < height - 16)