summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-06-26 22:57:13 +0300
committerAndrei Karas <akaras@inbox.ru>2019-06-26 22:57:13 +0300
commit007912d74e1e067ddd1566429aabfa5970b0525a (patch)
treed5409753342971c42fb364bd5d5cc70773ef0876 /src/net/eathena/playerhandler.cpp
parent653431655169659331999f4f2d63aa05cfcf3134 (diff)
downloadplus-007912d74e1e067ddd1566429aabfa5970b0525a.tar.gz
plus-007912d74e1e067ddd1566429aabfa5970b0525a.tar.bz2
plus-007912d74e1e067ddd1566429aabfa5970b0525a.tar.xz
plus-007912d74e1e067ddd1566429aabfa5970b0525a.zip
Update packet CMSG_SET_SHORTCUTS
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp6
1 files changed, 6 insertions, 0 deletions
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");