summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-death.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-29 08:17:15 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:27 -0600
commitb6966b2647ce1c0086e33caa5ced1cba429143c3 (patch)
tree4e45199cc21b7cfff6b5129d696001fffdf281c0 /crawl-ref/source/mon-death.cc
parent0a1c0a61d661771081af6a4719a8e54504d64323 (diff)
downloadcrawl-ref-b6966b2647ce1c0086e33caa5ced1cba429143c3.tar.gz
crawl-ref-b6966b2647ce1c0086e33caa5ced1cba429143c3.zip
Don't crash when killing monsters over liquids with Gozag.
Diffstat (limited to 'crawl-ref/source/mon-death.cc')
-rw-r--r--crawl-ref/source/mon-death.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-death.cc b/crawl-ref/source/mon-death.cc
index 1c86b1b1de..fb741fe4db 100644
--- a/crawl-ref/source/mon-death.cc
+++ b/crawl-ref/source/mon-death.cc
@@ -508,7 +508,7 @@ int place_monster_corpse(const monster* mons, bool player_or_pet, bool silent,
}
move_item_to_grid(&o, mons->pos(), !mons->swimming());
- if (mitm[o].base_type == OBJ_GOLD)
+ if (o != NON_ITEM && mitm[o].base_type == OBJ_GOLD)
invalidate_agrid(true);
if (you.see_cell(mons->pos()))