summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index b851a5093..0a660a79d 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -179,11 +179,12 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
PlayerInfoBackend &data = character->data;
data.mAttributes[PlayerInfo::EXP] = msg.readInt32();
data.mAttributes[PlayerInfo::MONEY] = msg.readInt32();
- data.mStats[JOB].exp = msg.readInt32();
+ Stat &jobStat = data.mStats[JOB];
+ jobStat.exp = msg.readInt32();
int temp = msg.readInt32();
- data.mStats[JOB].base = temp;
- data.mStats[JOB].mod = temp;
+ jobStat.base = temp;
+ jobStat.mod = temp;
int shoes = msg.readInt16();
int gloves = msg.readInt16();