diff options
Diffstat (limited to 'crawl-ref/source/database.cc')
-rw-r--r-- | crawl-ref/source/database.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index 140051b4db..461e401d80 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -596,13 +596,16 @@ std::string getLongDescription(const std::string &key, bool noquote) if (!DescriptionDB.get()) return (""); + std::string result = ""; if (noquote) { - return _query_database(DescriptionDB.get(), key + " noquote", - true, true); + result = _query_database(DescriptionDB.get(), key + " noquote", + true, true); } + if (result.empty()) + result = _query_database(DescriptionDB.get(), key, true, true); - return _query_database(DescriptionDB.get(), key, true, true); + return result; } std::vector<std::string> getLongDescKeysByRegex(const std::string ®ex, |