summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-18 04:36:23 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-18 04:36:23 +0000
commitdb1adf49314510665af88b08fa510d57cb07a08f (patch)
tree9f5a9ffa7c644d3493df5b6537f5654161333716 /crawl-ref/source/ouch.cc
parentc7100ea3560444e620986945fa3d8768654624dd (diff)
downloadcrawl-ref-db1adf49314510665af88b08fa510d57cb07a08f.tar.gz
crawl-ref-db1adf49314510665af88b08fa510d57cb07a08f.zip
Fixing blood potion timer/quantity mismatch caused by potion shattering.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6596 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 97e51b76a6..a0415148a0 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -501,6 +501,8 @@ static void _expose_invent_to_element(beam_type flavour, int strength)
if (dec_inv_item_quantity(i, 1))
break;
+ else if (is_blood_potion(you.inv[i]))
+ remove_oldest_blood_potion(you.inv[i]);
}
}
}