diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index c4b9f89af1..724ccfa21c 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5159,10 +5159,10 @@ void player::teleport(bool now, bool abyss_shift) you_teleport(); } -void player::hurt(actor *agent, int amount) +void player::hurt(const actor *agent, int amount) { if (agent->atype() == ACT_MONSTER) - ouch(amount, monster_index( dynamic_cast<monsters*>(agent) ), + ouch(amount, monster_index( dynamic_cast<const monsters*>(agent) ), KILLED_BY_MONSTER); else { |