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:
parent
736de8abf6
commit
7f5b6ed788
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue