summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 096eac8612..88820c61d2 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -2928,8 +2928,10 @@ static void give_potion(monsters *mon, int level)
//mv - give potion
if (mons_species( mon->type ) == MONS_VAMPIRE && one_chance_in(5))
{
+ // This handles initialization of stack timer.
const int thing_created =
items(0, OBJ_POTIONS, POT_BLOOD, true, level, 0);
+
if (thing_created == NON_ITEM)
return;