1
0
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:
Johan Mattsson
2022-02-03 21:42:12 +01:00
committed by GitHub
parent 66c9c99ed2
commit c00cc90b1f
5 changed files with 7 additions and 6 deletions

View File

@@ -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)