From 847a87f1645d273caef85041c334a5b65c43a636 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 30 Sep 2023 15:31:00 -0700 Subject: [PATCH] UI: Fix crash on input with no screens. --- Common/UI/Screen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Common/UI/Screen.cpp b/Common/UI/Screen.cpp index 0a16161db0..0851469985 100644 --- a/Common/UI/Screen.cpp +++ b/Common/UI/Screen.cpp @@ -119,6 +119,8 @@ bool ScreenManager::key(const KeyInput &key) { void ScreenManager::axis(const AxisInput *axes, size_t count) { std::lock_guard guard(inputLock_); + if (stack_.empty()) + return; stack_.back().screen->UnsyncAxis(axes, count); }