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/buyingstorehandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/eathena/buyingstorehandler.cpp') diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 9a9bfe728..f317cd712 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -327,7 +327,7 @@ void BuyingStoreHandler::sell(const Being *const being, const Item *const item, const int amount) const { - if (!being) + if (!being || !item) return; createOutPacket(CMSG_BUYINGSTORE_SELL); -- cgit v1.2.3-70-g09d2