UI: Fix crash on input with no screens.

This commit is contained in:
Unknown W. Brackets 2023-09-30 15:31:00 -07:00
parent aedd51f2f6
commit 847a87f164

View file

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