diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/game-server/character.cpp | 4 | ||||
-rw-r--r-- | src/serialize/characterdata.hpp | 1 |
3 files changed, 6 insertions, 1 deletions
@@ -4,6 +4,8 @@ src/game-server/itemmanager.cpp: Item types and weapon types are now identified by name instead of numbers in the items.xml. Cleaned out some nonsensical weapon types. + * src/serialize/characterdata.hpp, src/game-server/character.cpp: + Fixed account server compiling. 2008-01-07 Philipp Sehmisch <tmw@crushnet.org> diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index 694b4adf..c87f310f 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -51,6 +51,10 @@ Character::Character(MessageIn &msg): mDatabaseID = msg.readLong(); mName = msg.readString(); deserializeCharacterData(*this, msg); + for (int i = CHAR_ATTR_BEGIN; i < CHAR_ATTR_END; ++i) + { + modifiedAttribute(i); + } setSize(16); Inventory(this).initialize(); } diff --git a/src/serialize/characterdata.hpp b/src/serialize/characterdata.hpp index c9969b63..7d3a7fc1 100644 --- a/src/serialize/characterdata.hpp +++ b/src/serialize/characterdata.hpp @@ -74,7 +74,6 @@ void deserializeCharacterData(T &data, MessageIn &msg) for (int i = CHAR_ATTR_BEGIN; i < CHAR_ATTR_END; ++i) { data.setAttribute(i, msg.readByte()); - data.modifiedAttribute(i); } data.setMapId(msg.readShort()); |