summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-death.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-29 12:21:20 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-07 18:23:28 -0600
commitb68f326c9db9f8e21b68f17422bb6a681fc3bb3f (patch)
treec356db6442c530b022cd65e94d7005465ce3e469 /crawl-ref/source/mon-death.cc
parentdb754f7bc5a58bd2f4bf130e17eb2f73a6997d9c (diff)
downloadcrawl-ref-b68f326c9db9f8e21b68f17422bb6a681fc3bb3f.tar.gz
crawl-ref-b68f326c9db9f8e21b68f17422bb6a681fc3bb3f.zip
Don't goldify vault corpses.
Causes crashes when trying to place skeletons.
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 6d0c05d52d..35595834d3 100644
--- a/crawl-ref/source/mon-death.cc
+++ b/crawl-ref/source/mon-death.cc
@@ -468,7 +468,7 @@ int place_monster_corpse(const monster* mons, bool silent, bool force)
return -1;
}
- if (you_worship(GOD_GOZAG) && !player_under_penance())
+ if (!force && you_worship(GOD_GOZAG) && !player_under_penance())
{
const monsterentry* me = get_monster_data(corpse_class);
const int base_gold = max(3, (me->weight - 200) / 27);