diff options
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index d32464664c..810706bb41 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -2458,7 +2458,7 @@ void magic_mapping(int map_radius, int proportion) // realize that this is simply a repackaged version of // stuff::see_grid() -- make certain they correlate {dlb}: -bool mons_near(struct monsters *monster, unsigned int foe) +bool mons_near(const monsters *monster, unsigned int foe) { // early out -- no foe! if (foe == MHITNOT) @@ -2476,7 +2476,7 @@ bool mons_near(struct monsters *monster, unsigned int foe) } // must be a monster - struct monsters *myFoe = &menv[foe]; + const monsters *myFoe = &menv[foe]; if (myFoe->type >= 0) { if (monster->x > myFoe->x - 9 && monster->x < myFoe->x + 9 |