1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-04 14:43:06 +00:00

Fix controller selection of nested dialog choices

This commit is contained in:
Andrew Lanzone 2025-06-20 22:41:39 -07:00
parent 50e5863749
commit 2905ed5fb1

View file

@ -969,7 +969,7 @@ namespace MWGui
if (mChoices.size() > 0)
{
if (mControllerChoice >= 0 && mControllerChoice < static_cast<int>(mChoices.size()))
onChoiceActivated(mControllerChoice + 1); // +1 because choices are indexed starting at 1
onChoiceActivated(mChoices[mControllerChoice].second);
}
else if (mControllerFocus == static_cast<int>(mTopicsList->getItemCount()))
onGoodbyeActivated();