summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-13 20:17:58 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-13 20:17:58 +0200
commit57effc876dba0ef2acc3e6b8d034b394a63d796a (patch)
treefac2c8e70b3c70e32330ab61220d1ccdb1df325d /src/net/tmwa
parent186eb8dcc63052a167c61f29828a54902916c74d (diff)
downloadmanaplus-57effc876dba0ef2acc3e6b8d034b394a63d796a.tar.gz
manaplus-57effc876dba0ef2acc3e6b8d034b394a63d796a.tar.bz2
manaplus-57effc876dba0ef2acc3e6b8d034b394a63d796a.tar.xz
manaplus-57effc876dba0ef2acc3e6b8d034b394a63d796a.zip
Fix invisible equipment in equipment window (F4) issue.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp
index 3cc0e9ce0..23a1e78b1 100644
--- a/src/net/tmwa/inventoryhandler.cpp
+++ b/src/net/tmwa/inventoryhandler.cpp
@@ -426,6 +426,11 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
case SMSG_PLAYER_EQUIPMENT:
msg.readInt16(); // length
+ if (!PlayerInfo::getEquipment()->getBackend())
+ { // look like SMSG_PLAYER_INVENTORY was not received
+ mEquips.clear();
+ PlayerInfo::getEquipment()->setBackend(&mEquips);
+ }
number = (msg.getLength() - 4) / 20;
for (int loop = 0; loop < number; loop++)