summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 21:45:09 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 21:45:09 +0300
commit051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147 (patch)
treeb2bb3653bb90fe35337516546a6d75eeb203eb26 /src/net/eathena/inventoryhandler.cpp
parente8c3f1b99afc36383abe8c5441a75ae47929831a (diff)
downloadManaVerse-051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147.tar.gz
ManaVerse-051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147.tar.bz2
ManaVerse-051e3f455bd4bd9f8ed2bfbb5c3ac4243d983147.tar.xz
ManaVerse-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.cpp2
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()