summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 352caeb7e2..b5eaa2ecbb 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -21,6 +21,7 @@ REVISION("$Rev$");
#include "mapmark.h"
#include "message.h"
#include "misc.h"
+#include "mon-util.h"
#include "monplace.h"
#include "mtransit.h"
#include "player.h"
@@ -467,8 +468,8 @@ void area_shift(void)
#endif
lose_item_stack( *ri );
- if (mgrd(*ri) != NON_MONSTER)
- _abyss_lose_monster( menv[ mgrd(*ri) ] );
+ if (monsters* m = monster_at(*ri))
+ _abyss_lose_monster(*m);
}
// Shift all monsters and items to new area.