diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-15 21:31:57 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-15 21:31:57 +0000 |
commit | 6a6fe96636c93aa44ba6bb4c7986d3ecb48fffa9 (patch) | |
tree | 456851e2764fc4f5815d6ba2710830dfc0c598f5 /crawl-ref/source/player.cc | |
parent | 90fe4dad67ff1d0b0316ff0492711598291b4b13 (diff) | |
download | crawl-ref-6a6fe96636c93aa44ba6bb4c7986d3ecb48fffa9.tar.gz crawl-ref-6a6fe96636c93aa44ba6bb4c7986d3ecb48fffa9.zip |
Initialize quiver to ENDOFPACK instead of 0. Fixes the case:
play a hunger, switch from a) dagger to b) bow, the quiver
is your dagger instead of arrows.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3660 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 88f58592ef..39b31d1a16 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5377,7 +5377,7 @@ void player::init() total_skill_points = 0; attribute.init(0); - quiver.init(0); + quiver.init(ENDOFPACK); sacrifice_value.init(0); for (int i = 0; i < ENDOFPACK; i++) |