diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-02-24 19:18:17 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-02-24 19:18:17 +0000 |
commit | 273e9b107c094141bbd4e068dbd376fd148a00c0 (patch) | |
tree | 1116e4c8451192f9cf0ecae45787af6309380bdb /src/net/playerhandler.cpp | |
parent | b0a68d1508b3cd46cb39362ebd76e2d37e0321f5 (diff) | |
download | mana-273e9b107c094141bbd4e068dbd376fd148a00c0.tar.gz mana-273e9b107c094141bbd4e068dbd376fd148a00c0.tar.bz2 mana-273e9b107c094141bbd4e068dbd376fd148a00c0.tar.xz mana-273e9b107c094141bbd4e068dbd376fd148a00c0.zip |
Fixed a bug which caused an incorrect display of character correction points in some situations.
Diffstat (limited to 'src/net/playerhandler.cpp')
-rw-r--r-- | src/net/playerhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp index 951d6d4e..3c06d2f5 100644 --- a/src/net/playerhandler.cpp +++ b/src/net/playerhandler.cpp @@ -258,7 +258,7 @@ void PlayerHandler::handleMessage(MessageIn &msg) logger->log("Warning: Server denied reduction of attribute %d (reason unknown) ", attrNum); int charaPoints = player_node->getCharacterPoints() - 1; player_node->setCharacterPoints(charaPoints); - int correctPoints = player_node->getCharacterPoints() + 1; + int correctPoints = player_node->getCorrectionPoints() + 1; player_node->setCorrectionPoints(correctPoints); int attrValue = player_node->getAttributeBase(attrNum) + 1; player_node->setAttributeBase(attrNum, attrValue); |