summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 2719d1eaaf..52aee95021 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -63,6 +63,7 @@
#include "overmap.h"
#include "place.h"
#include "player.h"
+#include "quiver.h"
#include "randart.h"
#include "religion.h"
#include "shopping.h"
@@ -243,8 +244,7 @@ bool dec_inv_item_quantity( int obj, int amount )
if (you.equip[EQ_WEAPON] == obj)
you.wield_change = true;
- if (you.quiver[get_quiver_type()] == obj)
- you.quiver_change = true;
+ you.m_quiver->on_inv_quantity_change(obj, amount);
if (you.inv[obj].quantity <= amount)
{
@@ -315,9 +315,7 @@ void inc_inv_item_quantity( int obj, int amount )
if (you.equip[EQ_WEAPON] == obj)
you.wield_change = true;
- if (you.quiver[get_quiver_type()] == obj)
- you.quiver_change = true;
-
+ you.m_quiver->on_inv_quantity_change(obj, amount);
you.inv[obj].quantity += amount;
burden_change();
}