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/eathena/charserverhandler.cpp | |
parent | b35357cfcd58ac26d2f9d008a2db5b931cccb428 (diff) | |
download | manaplus-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/eathena/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 0b48e8d80..6a0bd6509 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -198,7 +198,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"); + } tempPlayer->setSprite(SPRITE_SHOE, shoes); tempPlayer->setSprite(SPRITE_GLOVES, gloves); |