chore: Fix some compiler warnings. (#6578)

This commit is contained in:
Steveice10
2023-05-30 12:36:12 -07:00
committed by GitHub
parent a1d265325a
commit b45c7188c7
3 changed files with 12 additions and 11 deletions

View File

@@ -110,7 +110,8 @@ std::tuple<unsigned, unsigned> EmuWindow::ClipToTouchScreen(unsigned new_x, unsi
}
void EmuWindow::CreateTouchState() {
if (touch_state = global_touch_state.lock()) {
touch_state = global_touch_state.lock();
if (touch_state) {
return;
}
touch_state = std::make_shared<TouchState>();