summaryrefslogtreecommitdiff
path: root/src/game-server/character.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-07-09 19:43:54 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-07-09 19:43:54 +0200
commite0884d0ac3dae67e2599c687d26823600f8c81b7 (patch)
treed6059cc073dee816efb6a55799e0f761fcca2052 /src/game-server/character.cpp
parentaa981826b8fedcbf4ff2988a1d14cd69ac47b8a8 (diff)
downloadmanaserv-e0884d0ac3dae67e2599c687d26823600f8c81b7.tar.gz
manaserv-e0884d0ac3dae67e2599c687d26823600f8c81b7.tar.bz2
manaserv-e0884d0ac3dae67e2599c687d26823600f8c81b7.tar.xz
manaserv-e0884d0ac3dae67e2599c687d26823600f8c81b7.zip
Fixed bug causing unnecessary special updating when attributes change.
Diffstat (limited to 'src/game-server/character.cpp')
-rw-r--r--src/game-server/character.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 301a8c5c..6df97c4e 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -445,9 +445,9 @@ void Character::modifiedAttribute(int attr)
void Character::flagAttribute(int attr)
{
- // Warn the player of this attribute modification.
+ // Inform the client of this attribute modification.
mModifiedAttributes.insert(attr);
- if (attr = CHAR_ATTR_INTELLIGENCE)
+ if (attr == CHAR_ATTR_INTELLIGENCE)
{
mSpecialUpdateNeeded = true;
}