1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Fix topics not being selectable for creatures

This commit is contained in:
scrawl 2013-03-25 17:32:01 +01:00
parent f2969e7143
commit 4be0c6b708

View file

@ -230,14 +230,14 @@ void DialogueWindow::onSelectTopic(const std::string& topic, int id)
{
if (!mEnabled) return;
int separatorPos = mTopicsList->getItemCount();
int separatorPos = 0;
for (unsigned int i=0; i<mTopicsList->getItemCount(); ++i)
{
if (mTopicsList->getItemNameAt(i) == "")
separatorPos = i;
}
if (id > separatorPos)
if (id >= separatorPos)
MWBase::Environment::get().getDialogueManager()->keywordSelected(lower_string(topic));
else
{