diff options
Diffstat (limited to 'src')
-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 |