summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-31 15:46:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:53 +0300
commit1111fdbeb39d01e7612e164512fecf4289569b10 (patch)
tree41d43be04c0fb38d89589c1b5e5958fe1a8d721c /src/net/eathena/charserverhandler.cpp
parentc911d47ad83dca749945a0cfd159299e0ad0fecd (diff)
downloadplus-1111fdbeb39d01e7612e164512fecf4289569b10.tar.gz
plus-1111fdbeb39d01e7612e164512fecf4289569b10.tar.bz2
plus-1111fdbeb39d01e7612e164512fecf4289569b10.tar.xz
plus-1111fdbeb39d01e7612e164512fecf4289569b10.zip
eathena: add packet CMSG_CHAR_CREATE 0x0970.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 2e9d7d5e0..3dd5134e0 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -226,12 +226,11 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
const int hairstyle, const int hairColor,
const unsigned char race A_UNUSED,
const unsigned char look A_UNUSED,
- const std::vector<int> &stats) const
+ const std::vector<int> &stats A_UNUSED)
+ const
{
MessageOut outMsg(CMSG_CHAR_CREATE);
outMsg.writeString(name, 24);
- for (int i = 0; i < 6; i++)
- outMsg.writeInt8(static_cast<unsigned char>(stats[i]));
outMsg.writeInt8(static_cast<unsigned char>(slot));
outMsg.writeInt16(static_cast<int16_t>(hairColor));