diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/net/playerhandler.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -2,6 +2,8 @@ * src/gui/skill.cpp, src/gui/skill.h: Optical enhancements based on a patch by rodge. + * src/net/playerhandler.cpp: Fixed a bug which caused an incorrect + display of character correction points in some situations. 2008-02-23 Philipp Sehmisch <tmw@crushnet.org> 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); |