diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:58:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:58:16 +0300 |
commit | 482782d74c61e226ed1ce81700708244565291f5 (patch) | |
tree | c955925952f091cdc71af8b1e7f8b3cdabecfa6b /src/net/eathena/buyingstorehandler.cpp | |
parent | ee12c6e77bd4d34d5fa682361127add32cc1a184 (diff) | |
download | mv-482782d74c61e226ed1ce81700708244565291f5.tar.gz mv-482782d74c61e226ed1ce81700708244565291f5.tar.bz2 mv-482782d74c61e226ed1ce81700708244565291f5.tar.xz mv-482782d74c61e226ed1ce81700708244565291f5.zip |
Add missing checks into net directory.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |