diff options
author | Ira Rice <irarice@gmail.com> | 2008-11-06 17:44:35 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-11-06 17:44:35 +0000 |
commit | 0db6dce98d9c07b569dd29207979818f114f7a32 (patch) | |
tree | 3ae317c611a6e1d530b7d5e2b693ffc554aaa920 /src/localplayer.cpp | |
parent | cb81caa6ddbe1861d7b276d48f337dd8841d68c1 (diff) | |
download | mana-0db6dce98d9c07b569dd29207979818f114f7a32.tar.gz mana-0db6dce98d9c07b569dd29207979818f114f7a32.tar.bz2 mana-0db6dce98d9c07b569dd29207979818f114f7a32.tar.xz mana-0db6dce98d9c07b569dd29207979818f114f7a32.zip |
Ported a patch by Peavey on TMW to keep all item pointers inside of
inventory. For us, this should get rid of the arrow crashing bug, if it
still exists (been a few weeks since I've heard of it happening now).
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 129626f0..9475fcbb 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -200,7 +200,7 @@ void LocalPlayer::unequipItem(Item *item) outMsg.writeInt16(item->getInvIndex()); // Tidy equipment directly to avoid weapon still shown bug, for instance - mEquipment->removeEquipment(item); + mEquipment->removeEquipment(item->getInvIndex()); } void LocalPlayer::useItem(Item *item) |