diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-23 19:36:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-23 19:36:38 +0300 |
commit | 0cb2889cdef920918d3697fad42f83e83602d630 (patch) | |
tree | b6dcde88a26fc94f4db4b1d0d41737d05efeed70 /src/net/eathena/skillhandler.cpp | |
parent | 402edcfffd8e00a3624d2442cf06377a9e19436e (diff) | |
download | plus-0cb2889cdef920918d3697fad42f83e83602d630.tar.gz plus-0cb2889cdef920918d3697fad42f83e83602d630.tar.bz2 plus-0cb2889cdef920918d3697fad42f83e83602d630.tar.xz plus-0cb2889cdef920918d3697fad42f83e83602d630.zip |
eathena: fix processSkillFailed.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 663e95876..e5025cd9a 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -195,11 +195,10 @@ void SkillHandler::processSkillFailed(Net::MessageIn &msg) { // Action failed (ex. sit because you have not reached the // right level) - const int skillId = msg.readInt16(); - const int16_t bskill = msg.readInt16(); - msg.readInt16(); // btype - const signed char success = msg.readUInt8(); - const signed char reason = msg.readUInt8(); + const int skillId = msg.readInt16("skill id"); + const int16_t bskill = msg.readInt32("btype"); + const signed char success = msg.readUInt8("success"); + const signed char reason = msg.readUInt8("reason"); if (success != static_cast<int>(SKILL_FAILED) && bskill == static_cast<int>(BSKILL_EMOTE)) { |