summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-09-09 21:40:20 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-09-09 21:40:20 +0200
commit9f2ad5033c31eb6969e262f164c4cb7c911b60d4 (patch)
tree79f5ba7f299e989e2c2ac3e221ddcb2e6af6ba9d
parent569be1087e3f5f8e1dca2a8ab93e60938657d55f (diff)
downloadmanaserv-9f2ad5033c31eb6969e262f164c4cb7c911b60d4.tar.gz
manaserv-9f2ad5033c31eb6969e262f164c4cb7c911b60d4.tar.bz2
manaserv-9f2ad5033c31eb6969e262f164c4cb7c911b60d4.tar.xz
manaserv-9f2ad5033c31eb6969e262f164c4cb7c911b60d4.zip
Fixed the equipment info for characters
It was a inventory slot not equipmentslot.
-rw-r--r--src/account-server/accounthandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index 90d1092f..32b33501 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -291,7 +291,7 @@ void AccountHandler::sendCharacterData(AccountClient &client,
for (int itemSlot : equipData)
{
const auto &it = inventoryData.find(itemSlot);
- charInfo.writeInt16(itemSlot);
+ charInfo.writeInt16(it->second.equipmentSlot);
charInfo.writeInt16(it->second.itemId);
}