From 6963b000a2dc694900f9eb3252ef5363ce8ddf92 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Fri, 13 Nov 2009 16:27:50 +0300 Subject: Replace monster_index with monsters::mindex. --- crawl-ref/source/mon-behv.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/mon-behv.cc') diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index 03ae622bb9..25045c6546 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -908,7 +908,7 @@ static void _check_wander_target(monsters *mon, bool isPacified = false, static void _arena_set_foe(monsters *mons) { - const int mind = monster_index(mons); + const int mind = mons->mindex(); int nearest = -1; int best_distance = -1; @@ -1216,7 +1216,7 @@ void handle_behaviour(monsters *mon) _set_nearest_monster_foe(mon); // Monsters do not attack themselves. {dlb} - if (mon->foe == monster_index(mon)) + if (mon->foe == mon->mindex()) mon->foe = MHITNOT; // Friendly and good neutral monsters do not attack other friendly -- cgit v1.2.3-54-g00ecf