diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-25 02:30:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-25 02:30:47 +0300 |
commit | c9795055ee1b6079ef9b0c0e3faf4bb79704bd98 (patch) | |
tree | 147357b76a80705cf0af7bc1ec69cf417ef94812 /src/net/ea/playerrecv.cpp | |
parent | 1e5a50f6c67cd20967e139320a6c00f54e15dfe2 (diff) | |
download | plus-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.gz plus-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.bz2 plus-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.tar.xz plus-c9795055ee1b6079ef9b0c0e3faf4bb79704bd98.zip |
Add into player attributes prefix PLAYER_.
Diffstat (limited to 'src/net/ea/playerrecv.cpp')
-rw-r--r-- | src/net/ea/playerrecv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/playerrecv.cpp b/src/net/ea/playerrecv.cpp index 8035b9612..7a3b448f7 100644 --- a/src/net/ea/playerrecv.cpp +++ b/src/net/ea/playerrecv.cpp @@ -181,9 +181,9 @@ void PlayerRecv::processPlayerStatUpdate4(Net::MessageIn &msg) { const int oldValue = PlayerInfo::getStatBase( static_cast<AttributesT>(type)); - const int points = PlayerInfo::getAttribute(Attributes::CHAR_POINTS) - + oldValue - value; - PlayerInfo::setAttribute(Attributes::CHAR_POINTS, points); + const int points = PlayerInfo::getAttribute( + Attributes::PLAYER_CHAR_POINTS) + oldValue - value; + PlayerInfo::setAttribute(Attributes::PLAYER_CHAR_POINTS, points); NotifyManager::notify(NotifyTypes::SKILL_RAISE_ERROR); } |