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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user