From 0cb2889cdef920918d3697fad42f83e83602d630 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Sep 2014 19:36:38 +0300 Subject: eathena: fix processSkillFailed. --- src/net/eathena/skillhandler.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/net/eathena/skillhandler.cpp') 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(SKILL_FAILED) && bskill == static_cast(BSKILL_EMOTE)) { -- cgit v1.2.3-70-g09d2