Skip to content

Commit

Permalink
Merge pull request #18276 from unknownbrackets/ui-axis-crash
Browse files Browse the repository at this point in the history
UI: Fix crash on input with no screens
  • Loading branch information
hrydgard committed Sep 30, 2023
2 parents aedd51f + 847a87f commit 4bde384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Common/UI/Screen.cpp
Expand Up @@ -119,6 +119,8 @@ bool ScreenManager::key(const KeyInput &key) {

void ScreenManager::axis(const AxisInput *axes, size_t count) {
std::lock_guard<std::recursive_mutex> guard(inputLock_);
if (stack_.empty())
return;
stack_.back().screen->UnsyncAxis(axes, count);
}

Expand Down

0 comments on commit 4bde384

Please sign in to comment.