summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/database.cc')
-rw-r--r--crawl-ref/source/database.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc
index 254b800b57..f60a8b59eb 100644
--- a/crawl-ref/source/database.cc
+++ b/crawl-ref/source/database.cc
@@ -654,7 +654,7 @@ std::string getShoutString(const std::string &monst,
/////////////////////////////////////////////////////////////////////////////
// Speak DB specific functions.
-std::string getSpeakString(const std::string &monst)
+std::string getSpeakString(const std::string &key)
{
if (!SpeakDB)
return ("");
@@ -662,9 +662,9 @@ std::string getSpeakString(const std::string &monst)
int num_replacements = 0;
#ifdef DEBUG_MONSPEAK
- mprf(MSGCH_DIAGNOSTICS, "monster speech lookup for %s", monst.c_str());
+ mprf(MSGCH_DIAGNOSTICS, "monster speech lookup for %s", key.c_str());
#endif
- return _getRandomizedStr(SpeakDB, monst, "", num_replacements);
+ return _getRandomizedStr(SpeakDB, key, "", num_replacements);
}
/////////////////////////////////////////////////////////////////////////////