diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-19 06:23:34 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-19 06:23:34 +0000 |
commit | 7c9857aef2d64b26a39c4c16bd6fd5af82d281b8 (patch) | |
tree | c801343bacf2d4800f8a53690cac875bb2313f86 /crawl-ref/source/quiver.cc | |
parent | 4a493c76b7264bc0bc83b52c4458ea8c994d93fb (diff) | |
download | crawl-ref-7c9857aef2d64b26a39c4c16bd6fd5af82d281b8.tar.gz crawl-ref-7c9857aef2d64b26a39c4c16bd6fd5af82d281b8.zip |
Fix case where quiver stored items with quantity other than 1
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4356 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/quiver.cc')
-rw-r--r-- | crawl-ref/source/quiver.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/quiver.cc b/crawl-ref/source/quiver.cc index 44427331c6..d737bcb0d7 100644 --- a/crawl-ref/source/quiver.cc +++ b/crawl-ref/source/quiver.cc @@ -344,7 +344,10 @@ preserve_quiver_slots::~preserve_quiver_slots() { const int slot = m_last_used_of_type[i]; if (slot != -1) + { you.m_quiver->m_last_used_of_type[i] = you.inv[slot]; + you.m_quiver->m_last_used_of_type[i].quantity = 1; + } } you.redraw_quiver = true; } |