summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/defines.h2
-rw-r--r--src/game-server/character.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/defines.h b/src/defines.h
index 69e0915b..f4d99630 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -125,7 +125,7 @@ enum {
PGMSG_MOVE_ITEM = 0x0114, // B slot1, B slot2, B amount
GPMSG_INVENTORY = 0x0120, // { B slot, W item id [, B amount] }*
GPMSG_INVENTORY_FULL = 0x0121, // { B slot, W item id [, B amount] }*
- GPMSG_PLAYER_ATTRIBUTE_CHANGE = 0x0130, // { B attribute, W base value, W modified value }*
+ GPMSG_PLAYER_ATTRIBUTE_CHANGE = 0x0130, // { W attribute, W base value, W modified value }*
GPMSG_PLAYER_EXP_CHANGE = 0x0140, // { W skill, D exp got, D exp needed }*
GPMSG_LEVELUP = 0x0150, // W new level, W character points, W correction points
GPMSG_LEVEL_PROGRESS = 0x0151, // B percent completed to next levelup
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 809ed5ec..9e68667c 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -294,7 +294,7 @@ void Character::sendStatus()
i_end = mModifiedAttributes.end(); i != i_end; ++i)
{
int attr = *i;
- attribMsg.writeByte(attr);
+ attribMsg.writeShort(attr);
attribMsg.writeShort(getAttribute(attr));
attribMsg.writeShort(getModifiedAttribute(attr));
}