erreula: fix inverted IsDecideSelectLeft/RightButtonError

Both functions returned != where == was meant, so each reported true for every
selection except the one it was asking about, and both returned true when no
button had been selected at all (BUTTON_SELECTION::NONE).

IsDecideSelectButtonError directly above uses != correctly, since it asks
whether any button was selected, which is presumably where this came from.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
NKR0ne
2026-07-25 08:40:27 -04:00
parent b8f2cf4b43
commit dc7111f5ef

View File

@@ -152,12 +152,12 @@ namespace erreula
bool IsDecideSelectLeftButtonError() const
{
return m_buttonSelection != BUTTON_SELECTION::LEFT;
return m_buttonSelection == BUTTON_SELECTION::LEFT;
}
bool IsDecideSelectRightButtonError() const
{
return m_buttonSelection != BUTTON_SELECTION::RIGHT;
return m_buttonSelection == BUTTON_SELECTION::RIGHT;
}
void SetButtonSelection(BUTTON_SELECTION selection)