summaryrefslogtreecommitdiff
path: root/src/net/charserverhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/charserverhandler.cpp')
-rw-r--r--src/net/charserverhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp
index 9857ddc0..06ec78c1 100644
--- a/src/net/charserverhandler.cpp
+++ b/src/net/charserverhandler.cpp
@@ -191,10 +191,10 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn *msg, int &slot)
tempPlayer->setWeapon(weapon);
tempPlayer->mLevel = msg->readInt16();
msg->readInt16(); // skill point
- tempPlayer->mVisibleEquipment[3] = msg->readInt16(); // head bottom
+ tempPlayer->setVisibleEquipment(3, msg->readInt16()); // head bottom
msg->readInt16(); // shield
- tempPlayer->mVisibleEquipment[4] = msg->readInt16(); // head option top
- tempPlayer->mVisibleEquipment[5] = msg->readInt16(); // head option mid
+ tempPlayer->setVisibleEquipment(4, msg->readInt16()); // head option top
+ tempPlayer->setVisibleEquipment(5, msg->readInt16()); // head option mid
tempPlayer->setHairColor(msg->readInt16());
msg->readInt16(); // unknown
tempPlayer->setName(msg->readString(24));