summaryrefslogtreecommitdiff
path: root/src/q_shroom.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_shroom.cc')
-rw-r--r--src/q_shroom.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/q_shroom.cc b/src/q_shroom.cc
index f14c7faf..627f2b39 100644
--- a/src/q_shroom.cc
+++ b/src/q_shroom.cc
@@ -319,6 +319,8 @@ static bool quest_shroom_chat_hook(void *, void *in_, void *)
void quest_shroom_init_hook()
{
+ auto &messages = game->messages;
+
/* Get a number of 'shrooms */
if (!cquest.data[1])
{
@@ -326,7 +328,7 @@ void quest_shroom_init_hook()
cquest.data[1] = rand_range(7, 14);
if (wizard)
{
- message_add(format("Shrooms number %d", cquest.data[1]), TERM_BLUE);
+ messages.add(format("Shrooms number %d", cquest.data[1]), TERM_BLUE);
}
}