Guitar: consistency of BoundCount check

only control[0] was checked, and not one, which seems random.
Either both or none should be checked.
This commit is contained in:
Filoppi 2021-05-04 23:57:25 +03:00
parent 736de8abf6
commit 7f5b6ed788
1 changed files with 2 additions and 1 deletions

View File

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