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 b256df20..3ca66bfe 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -126,7 +126,7 @@ enum {
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_EXP_CHANGE = 0x0140, // { B skill, D exp got, D exp needed }*
+ 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
PGMSG_RAISE_ATTRIBUTE = 0x0160, // B attribute
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 7e0dc125..f2b746e3 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -298,7 +298,7 @@ void Character::sendStatus()
i_end = mModifiedExperience.end(); i != i_end; ++i)
{
int skill = *i;
- expMsg.writeByte(skill);
+ expMsg.writeShort(skill);
expMsg.writeLong(getExpGot(skill));
expMsg.writeLong(getExpNeeded(skill));
}