From 007912d74e1e067ddd1566429aabfa5970b0525a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Jun 2019 22:57:13 +0300 Subject: Update packet CMSG_SET_SHORTCUTS --- src/net/eathena/playerhandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/playerhandler.cpp') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 551ab0144..d3b0e6803 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -449,11 +449,17 @@ void PlayerHandler::updateStatus(const uint8_t status) const } void PlayerHandler::setShortcut(const int idx, + const int tab, const uint8_t type, const int id, const int level) const { createOutPacket(CMSG_SET_SHORTCUTS); + if (packetVersionMain >= 20190522 || + packetVersionRe >= 20190508) + { + outMsg.writeInt16(CAST_S16(tab), "tab"); + } outMsg.writeInt16(CAST_S16(idx), "index"); outMsg.writeInt8(CAST_S8(type), "type"); outMsg.writeInt32(id, "id"); -- cgit v1.2.3-70-g09d2