diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-01 17:44:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-01 19:28:09 +0300 |
commit | 1d6c226f2aae2410f9785709aefd88f1a17e6bca (patch) | |
tree | b5d1d89f8c0418c3c0a95875285ac4c9350692b8 /src/net/tmwa/charserverhandler.cpp | |
parent | b35357cfcd58ac26d2f9d008a2db5b931cccb428 (diff) | |
download | manaverse-1d6c226f2aae2410f9785709aefd88f1a17e6bca.tar.gz manaverse-1d6c226f2aae2410f9785709aefd88f1a17e6bca.tar.bz2 manaverse-1d6c226f2aae2410f9785709aefd88f1a17e6bca.tar.xz manaverse-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.cpp | 5 |
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) { |