diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:45:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 21:45:09 +0300 |
commit | 051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147 (patch) | |
tree | b2bb3653bb90fe35337516546a6d75eeb203eb26 /src/net/eathena/inventoryhandler.cpp | |
parent | e8c3f1b99afc36383abe8c5441a75ae47929831a (diff) | |
download | manaplus-051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147.tar.gz manaplus-051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147.tar.bz2 manaplus-051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147.tar.xz manaplus-051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147.zip |
Fix version for packet CMSG_PLAYER_FAVORITE_ITEM.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index c010f4b0f..5c6e641a9 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -508,7 +508,7 @@ void InventoryHandler::insertCard(const int cardIndex, void InventoryHandler::favoriteItem(const Item *const item, const bool favorite) const { - if (!item) + if (!item || packetVersion < 20120410) return; createOutPacket(CMSG_PLAYER_FAVORITE_ITEM); outMsg.writeInt16(CAST_S16(item->getInvIndex() |