summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-14 21:25:15 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-14 21:25:15 +0000
commit5ec10fbaaf4c6374cad75d90645aca681f967780 (patch)
treec7f67f95905f592d7aa5da0b755c295d04c90eca /crawl-ref/source/ouch.cc
parent12f2aced2958deb50aeacac2d6b4812a0aba9059 (diff)
downloadcrawl-ref-5ec10fbaaf4c6374cad75d90645aca681f967780.tar.gz
crawl-ref-5ec10fbaaf4c6374cad75d90645aca681f967780.zip
Properly take item quantities into account when they're destroyed on the
floor. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5043 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 7539854526..615ef92322 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -560,7 +560,7 @@ void expose_items_to_element(beam_type flavour, int x, int y)
|| (target_class == OBJ_FOOD
&& mitm[i].base_type == OBJ_CORPSES)))
{
- num_dest++;
+ num_dest += mitm[i].quantity;
item_was_destroyed(mitm[i]);