summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index e8cc6205fd..f25858a518 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -2786,7 +2786,7 @@ god_type monsters::deity() const
return (god);
}
-void monsters::hurt(actor *agent, int amount)
+void monsters::hurt(const actor *agent, int amount)
{
if (amount <= 0)
return;
@@ -2798,7 +2798,7 @@ void monsters::hurt(actor *agent, int amount)
monster_die(this, KILL_YOU, 0);
else
monster_die(this, KILL_MON,
- monster_index( dynamic_cast<monsters*>(agent) ));
+ monster_index( dynamic_cast<const monsters*>(agent) ));
}
}