summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/skillhandler.cpp9
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))
{