summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r--crawl-ref/source/newgame.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index 8f8f841d28..51138dd2a1 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -86,6 +86,7 @@
#include "macro.h"
#include "makeitem.h"
#include "menu.h"
+#include "misc.h"
#include "place.h"
#include "player.h"
#include "randart.h"
@@ -852,6 +853,7 @@ static void _give_starting_food()
return;
item_def item;
+ item.quantity = 1;
if ( you.species == SP_SPRIGGAN )
{
item.base_type = OBJ_POTIONS;
@@ -861,7 +863,7 @@ static void _give_starting_food()
{
item.base_type = OBJ_POTIONS;
item.sub_type = POT_BLOOD;
- item.special = 1200;
+ init_stack_blood_potions(item);
}
else
{
@@ -874,7 +876,6 @@ static void _give_starting_food()
else
item.sub_type = FOOD_BREAD_RATION;
}
- item.quantity = 1;
const int slot = find_free_slot(item);
you.inv[slot] = item; // will ASSERT if couldn't find free slot