From 2774a0c9ea6b06c000c60dbcc602862ced0a17b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Jan 2015 01:33:29 +0300 Subject: Fix skill using to being. --- src/gui/windows/skilldialog.cpp | 8 ++++---- src/net/eathena/skillhandler.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 514bd101b..297bc0049 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -590,14 +590,14 @@ void SkillDialog::useSkill(const SkillInfo *const info) const Being *const being = localPlayer->getTarget(); if (being) { - skillHandler->useBeing(info->level, - info->id, being->getId()); + skillHandler->useBeing(info->id, + info->level, being->getId()); } break; } case SkillType::Self: - skillHandler->useBeing(info->level, - info->id, localPlayer->getId()); + skillHandler->useBeing(info->id, + info->level, localPlayer->getId()); break; case SkillType::Ground: diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index ba2fc8f8b..03dce353b 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -116,8 +116,8 @@ void SkillHandler::useBeing(const int id, const int level, const int beingId) const { createOutPacket(CMSG_SKILL_USE_BEING); - outMsg.writeInt16(static_cast(id), "skill id"); outMsg.writeInt16(static_cast(level), "skill level"); + outMsg.writeInt16(static_cast(id), "skill id"); outMsg.writeInt32(beingId, "target id"); } -- cgit v1.2.3-60-g2f50