summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 18:38:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:09 +0300
commit624ddd306ebbd1cfdfd5bf85832ee969e15a619c (patch)
treed36e74e62836de01727fc0a440f3a70cabc91acd /src/net/tmwa/charserverhandler.cpp
parent1d6c226f2aae2410f9785709aefd88f1a17e6bca (diff)
downloadmanaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.gz
manaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.bz2
manaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.xz
manaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.zip
Move JOB stat from net enum into attributes.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index b1d1fa055..7d5f7a299 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -146,7 +146,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
PlayerInfoBackend &data = character->data;
data.mAttributes[Attributes::EXP] = msg.readInt32("exp");
data.mAttributes[Attributes::MONEY] = msg.readInt32("money");
- Stat &jobStat = data.mStats[static_cast<size_t>(JOB)];
+ Stat &jobStat = data.mStats[static_cast<size_t>(Attributes::JOB)];
jobStat.exp = msg.readInt32("job");
const int temp = msg.readInt32("job level");