mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 15:27:13 -04:00
Fix range check in journal window
This commit is contained in:
parent
3147aea0ed
commit
7e9d4795ba
@ -754,13 +754,15 @@ namespace
|
||||
{
|
||||
// Choose a quest
|
||||
Gui::MWList* list = getWidget<Gui::MWList>(QuestsList);
|
||||
notifyQuestClicked(list->getItemNameAt(mSelectedQuest), 0);
|
||||
if (mSelectedQuest < list->getItemCount())
|
||||
notifyQuestClicked(list->getItemNameAt(mSelectedQuest), 0);
|
||||
}
|
||||
else if (mTopicsMode)
|
||||
{
|
||||
// Choose a topic
|
||||
Gui::MWList* list = getWidget<Gui::MWList>(TopicsList);
|
||||
notifyTopicSelected(list->getItemNameAt(mSelectedQuest), 0);
|
||||
if (mSelectedQuest < list->getItemCount())
|
||||
notifyTopicSelected(list->getItemNameAt(mSelectedQuest), 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user