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/mercenaryrecv.cpp | |
parent | 8be2905d29db5013bf8a2d9c5c7c7155af77ed49 (diff) | |
download | manaplus-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.tar.gz manaplus-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.tar.bz2 manaplus-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.tar.xz manaplus-0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8.zip |
Fix code style. Add missing actorManager null checks.
Diffstat (limited to 'src/net/eathena/mercenaryrecv.cpp')
-rw-r--r-- | src/net/eathena/mercenaryrecv.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/eathena/mercenaryrecv.cpp b/src/net/eathena/mercenaryrecv.cpp index 7b1c80545..bd4579c83 100644 --- a/src/net/eathena/mercenaryrecv.cpp +++ b/src/net/eathena/mercenaryrecv.cpp @@ -78,6 +78,8 @@ void MercenaryRecv::processMercenaryUpdate(Net::MessageIn &msg) void MercenaryRecv::processMercenaryInfo(Net::MessageIn &msg) { + if (actorManager == nullptr) + return; // +++ need create if need mercenary being and update stats Being *const dstBeing = actorManager->findBeing( msg.readBeingId("being id")); |