summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 17:44:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:09 +0300
commit1d6c226f2aae2410f9785709aefd88f1a17e6bca (patch)
treeb5d1d89f8c0418c3c0a95875285ac4c9350692b8 /src/net/tmwa/charserverhandler.cpp
parentb35357cfcd58ac26d2f9d008a2db5b931cccb428 (diff)
downloadmanaplus-1d6c226f2aae2410f9785709aefd88f1a17e6bca.tar.gz
manaplus-1d6c226f2aae2410f9785709aefd88f1a17e6bca.tar.bz2
manaplus-1d6c226f2aae2410f9785709aefd88f1a17e6bca.tar.xz
manaplus-1d6c226f2aae2410f9785709aefd88f1a17e6bca.zip
Move STR stat from net enum into attributes.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index adf82cf34..b1d1fa055 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -197,7 +197,10 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
character->dummy = tempPlayer;
for (int i = 0; i < 6; i++)
- character->data.mStats[i + STR].base = msg.readUInt8("stat");
+ {
+ character->data.mStats[i + Attributes::STR].base
+ = msg.readUInt8("stat");
+ }
if (withColors)
{