From 7f5b6ed788afce17622b8d61dad8a267ac170b53 Mon Sep 17 00:00:00 2001 From: Filoppi Date: Tue, 4 May 2021 23:57:25 +0300 Subject: [PATCH] Guitar: consistency of BoundCount check only control[0] was checked, and not one, which seems random. Either both or none should be checked. --- Source/Core/Core/HW/WiimoteEmu/Extension/Guitar.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/Extension/Guitar.cpp b/Source/Core/Core/HW/WiimoteEmu/Extension/Guitar.cpp index 88a14c3400..23bc8f09c9 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Extension/Guitar.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Extension/Guitar.cpp @@ -107,7 +107,8 @@ void Guitar::Update() } // slider bar - if (m_slider_bar->controls[0]->control_ref->BoundCount()) + if (m_slider_bar->controls[0]->control_ref->BoundCount() && + m_slider_bar->controls[1]->control_ref->BoundCount()) { const ControllerEmu::Slider::StateData slider_data = m_slider_bar->GetState();