summaryrefslogtreecommitdiff
path: root/src/resources/db/npcdialogdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/npcdialogdb.cpp')
-rw-r--r--src/resources/db/npcdialogdb.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/db/npcdialogdb.cpp b/src/resources/db/npcdialogdb.cpp
index 79918307a..628ee233e 100644
--- a/src/resources/db/npcdialogdb.cpp
+++ b/src/resources/db/npcdialogdb.cpp
@@ -140,3 +140,11 @@ void NpcDialogDB::unload()
mLoaded = false;
}
+
+NpcDialogInfo *NpcDialogDB::getDialog(const std::string &name)
+{
+ DialogsIter it = mDialogs.find(name);
+ if (it == mDialogs.end())
+ return nullptr;
+ return (*it).second;
+}