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/battlegroundrecv.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/eathena/battlegroundrecv.cpp') diff --git a/src/net/eathena/battlegroundrecv.cpp b/src/net/eathena/battlegroundrecv.cpp index 5ee99d38d..5ee51251e 100644 --- a/src/net/eathena/battlegroundrecv.cpp +++ b/src/net/eathena/battlegroundrecv.cpp @@ -42,6 +42,8 @@ void BattleGroundRecv::processBattleEmblem(Net::MessageIn &msg) void BattleGroundRecv::processBattleEmblem2(Net::MessageIn &msg) { + if (actorManager == nullptr) + return; const BeingId id = msg.readBeingId("account id"); msg.readString(24, "name"); msg.readInt16("bg id"); -- cgit v1.2.3-70-g09d2