summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-08 19:50:00 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-08 19:50:00 +0300
commit4eaad7f7c871fb5a36e075c1f2cc279255f4a753 (patch)
tree707216a193ba2bbf9413e6dbe593e5d09a159ef7
parent62620d490984f7f75c68f4886a59d8fd57f8eada (diff)
downloadplus-4eaad7f7c871fb5a36e075c1f2cc279255f4a753.tar.gz
plus-4eaad7f7c871fb5a36e075c1f2cc279255f4a753.tar.bz2
plus-4eaad7f7c871fb5a36e075c1f2cc279255f4a753.tar.xz
plus-4eaad7f7c871fb5a36e075c1f2cc279255f4a753.zip
Fix job field size in new char create packet.
-rw-r--r--src/net/eathena/charserverhandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 630dca675..168bd1ed8 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -109,8 +109,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
outMsg.writeInt8(CAST_U8(slot), "slot");
outMsg.writeInt16(CAST_S16(hairColor), "hair color");
outMsg.writeInt16(CAST_S16(hairstyle), "hair style");
- outMsg.writeInt16(CAST_S16(0), "starting job id");
- outMsg.writeInt16(0, "unknown");
+ outMsg.writeInt32(CAST_S16(0), "starting job id");
uint8_t sex = 0;
if (gender == Gender::UNSPECIFIED)
sex = 99;