From 0e1d656e85e1bbc80e9e8adcfb2c07a8bc0d4bb8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Feb 2018 03:13:01 +0300 Subject: Fix code style. Add missing actorManager null checks. --- src/net/eathena/mercenaryrecv.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/eathena/mercenaryrecv.cpp') 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")); -- cgit v1.2.3-70-g09d2