diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-12 03:13:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-12 03:13:01 +0300 |
commit | 0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8 (patch) | |
tree | 5b537fe44b0753ced7c6f9fd1aa916604c178f2f /src/net/eathena/buyingstorerecv.cpp | |
parent | 8be2905d29db5013bf8a2d9c5c7c7155af77ed49 (diff) | |
download | manaverse-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.tar.gz manaverse-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.tar.bz2 manaverse-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.tar.xz manaverse-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.zip |
Fix code style. Add missing actorManager null checks.
Diffstat (limited to 'src/net/eathena/buyingstorerecv.cpp')
-rw-r--r-- | src/net/eathena/buyingstorerecv.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorerecv.cpp b/src/net/eathena/buyingstorerecv.cpp index 0697b87f7..90766686a 100644 --- a/src/net/eathena/buyingstorerecv.cpp +++ b/src/net/eathena/buyingstorerecv.cpp @@ -93,6 +93,8 @@ void BuyingStoreRecv::processBuyingStoreOwnItems(Net::MessageIn &msg) void BuyingStoreRecv::processBuyingStoreShowBoard(Net::MessageIn &msg) { + if (actorManager == nullptr) + return; const BeingId id = msg.readBeingId("owner id"); Being *const dstBeing = actorManager->findBeing(id); if (dstBeing != nullptr) @@ -107,6 +109,8 @@ void BuyingStoreRecv::processBuyingStoreShowBoard(Net::MessageIn &msg) void BuyingStoreRecv::processBuyingStoreHideBoard(Net::MessageIn &msg) { + if (actorManager == nullptr) + return; const BeingId id = msg.readBeingId("owner id"); Being *const dstBeing = actorManager->findBeing(id); if (dstBeing != nullptr) @@ -120,6 +124,8 @@ void BuyingStoreRecv::processBuyingStoreHideBoard(Net::MessageIn &msg) void BuyingStoreRecv::processBuyingStoreItemsList(Net::MessageIn &msg) { + if (actorManager == nullptr) + return; const int count = (msg.readInt16("len") - 16) / 9; const BeingId id = msg.readBeingId("account id"); const int storeId = msg.readInt32("store id"); |