diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-15 14:31:48 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-15 14:31:48 +0000 |
commit | 3e19a2c17e30265df5a49f8aa5c9e598d309e20b (patch) | |
tree | c1ab1a74b3d9185be9b0c62ea225168744f2059b /crawl-ref/source/monstuff.cc | |
parent | 2854a6cf54831cd8415f96be5d6542440beb71a2 (diff) | |
download | crawl-ref-3e19a2c17e30265df5a49f8aa5c9e598d309e20b.tar.gz crawl-ref-3e19a2c17e30265df5a49f8aa5c9e598d309e20b.zip |
Fix [2506229].
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8463 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index e787b38f4b..31a9896171 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -270,7 +270,6 @@ void monster_drop_ething(monsters *monster, bool mark_item_origins, int owner_id) { const bool hostile_grid = grid_destroys_items(grd(monster->pos())); - const int midx = (int) monster_index(monster); bool destroyed = false; @@ -285,7 +284,7 @@ void monster_drop_ething(monsters *monster, bool mark_item_origins, testbits(mitm[item].flags, ISFLAG_SUMMONED); if (hostile_grid || summoned_item) { - item_was_destroyed(mitm[item], midx); + item_was_destroyed(mitm[item], monster->mindex()); destroy_item( item ); if (!summoned_item) destroyed = true; |