diff --git a/src/openrct2-ui/UiContext.cpp b/src/openrct2-ui/UiContext.cpp index 495e5597a3..3ff009bc37 100644 --- a/src/openrct2-ui/UiContext.cpp +++ b/src/openrct2-ui/UiContext.cpp @@ -155,7 +155,7 @@ public: bool HasFocus() override { uint32 windowFlags = GetWindowFlags(); - return (windowFlags & SDL_WINDOW_INPUT_FOCUS); + return (windowFlags & SDL_WINDOW_INPUT_FOCUS) != 0; } bool IsMinimised() override