summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 8fae69b5f7..786cb8f58d 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6538,7 +6538,7 @@ void player::attacking(actor *other)
{
const monsters *mon = dynamic_cast<monsters*>(other);
if (!mons_friendly(mon) && !mons_neutral(mon))
- pet_target = monster_index(mon);
+ pet_target = mon->mindex();
}
if (player_mutation_level(MUT_BERSERK)