Skip to content

Commit

Permalink
UI: Fix crash on input with no screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Sep 30, 2023
1 parent aedd51f commit 847a87f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Common/UI/Screen.cpp
Original file line number Diff line number Diff line change
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 847a87f

Please sign in to comment.