mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-17 13:36:44 +00:00
fixed getJournalIndex function
This commit is contained in:
parent
7f2ff6f5f1
commit
ce2cb709c5
1 changed files with 6 additions and 1 deletions
|
@ -60,7 +60,12 @@ namespace MWDialogue
|
||||||
|
|
||||||
int Journal::getJournalIndex (const std::string& id) const
|
int Journal::getJournalIndex (const std::string& id) const
|
||||||
{
|
{
|
||||||
|
TQuestContainer::const_iterator iter = mQuests.find (id);
|
||||||
|
|
||||||
|
if (iter==mQuests.end())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
return iter->second.getIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
Journal::TEntryIter Journal::begin() const
|
Journal::TEntryIter Journal::begin() const
|
||||||
|
|
Loading…
Reference in a new issue