forked from teamnwah/openmw-tes3coop
Fix topics not being selectable for creatures
This commit is contained in:
parent
f2969e7143
commit
4be0c6b708
1 changed files with 2 additions and 2 deletions
|
@ -230,14 +230,14 @@ void DialogueWindow::onSelectTopic(const std::string& topic, int id)
|
||||||
{
|
{
|
||||||
if (!mEnabled) return;
|
if (!mEnabled) return;
|
||||||
|
|
||||||
int separatorPos = mTopicsList->getItemCount();
|
int separatorPos = 0;
|
||||||
for (unsigned int i=0; i<mTopicsList->getItemCount(); ++i)
|
for (unsigned int i=0; i<mTopicsList->getItemCount(); ++i)
|
||||||
{
|
{
|
||||||
if (mTopicsList->getItemNameAt(i) == "")
|
if (mTopicsList->getItemNameAt(i) == "")
|
||||||
separatorPos = i;
|
separatorPos = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id > separatorPos)
|
if (id >= separatorPos)
|
||||||
MWBase::Environment::get().getDialogueManager()->keywordSelected(lower_string(topic));
|
MWBase::Environment::get().getDialogueManager()->keywordSelected(lower_string(topic));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue