From 482782d74c61e226ed1ce81700708244565291f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Jun 2015 23:58:16 +0300 Subject: Add missing checks into net directory. --- src/net/eathena/auctionhandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/eathena/auctionhandler.cpp') diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index 586e276b8..7522ec491 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -139,6 +139,8 @@ void AuctionHandler::cancelReg() const void AuctionHandler::setItem(const Item *const item, const int amount) const { + if (!item) + return; createOutPacket(CMSG_AUCTION_SET_ITEM); outMsg.writeInt16(static_cast( item->getInvIndex() + INVENTORY_OFFSET), "index"); -- cgit v1.2.3-70-g09d2