mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Fix bounds checks and a nullptr check
This commit is contained in:
@@ -1082,7 +1082,7 @@ void window_zoom_out(rct_window* w, bool atCursor)
|
||||
void main_window_zoom(bool zoomIn, bool atCursor)
|
||||
{
|
||||
auto* mainWindow = window_get_main();
|
||||
if (mainWindow != nullptr)
|
||||
if (mainWindow == nullptr)
|
||||
return;
|
||||
|
||||
if (gScreenFlags & SCREEN_FLAGS_TITLE_DEMO)
|
||||
|
||||
Reference in New Issue
Block a user