diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-13 16:27:50 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-13 16:28:55 +0300 |
commit | 6963b000a2dc694900f9eb3252ef5363ce8ddf92 (patch) | |
tree | 692c8dfbb0e6badf309ef9bd0e6ea15d8aa125d8 /crawl-ref/source/mon-behv.cc | |
parent | 227c580bbbbc698be1d90d9a808ce5fe9376acc3 (diff) | |
download | crawl-ref-6963b000a2dc694900f9eb3252ef5363ce8ddf92.tar.gz crawl-ref-6963b000a2dc694900f9eb3252ef5363ce8ddf92.zip |
Replace monster_index with monsters::mindex.
Diffstat (limited to 'crawl-ref/source/mon-behv.cc')
-rw-r--r-- | crawl-ref/source/mon-behv.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |