diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-08-28 18:56:14 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-28 11:03:55 -0600 |
commit | 919e6bef84e3670b206f192613558274a341b976 (patch) | |
tree | d09cb8717ac6a30cb652ddca97b0e58c71c53cdd /src/net/tmwa/inventoryhandler.cpp | |
parent | ef9eec73b3cc96ebecdc061e9e956a462fdcc19f (diff) | |
download | mana-client-919e6bef84e3670b206f192613558274a341b976.tar.gz mana-client-919e6bef84e3670b206f192613558274a341b976.tar.bz2 mana-client-919e6bef84e3670b206f192613558274a341b976.tar.xz mana-client-919e6bef84e3670b206f192613558274a341b976.zip |
Fixing omitted items in equipment window
Bug description: If a player has equipable items only, then the equipment
backend gets not initialized. As a consequence the equipment window
remains empty. This is particularly a problem for new characters.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index fd979dc6..7363c738 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -127,6 +127,7 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) int index, amount, itemId, equipType, arrow; int identified, cards[4], itemType; Inventory *inventory = player_node->getInventory(); + player_node->mEquipment->setBackend(&mEquips); switch (msg.getId()) { @@ -136,8 +137,6 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) { // Clear inventory - this will be a complete refresh mEquips.clear(); - player_node->mEquipment->setBackend(&mEquips); - inventory->clear(); } else |