diff --git a/BH/Modules/Bnet/Bnet.cpp b/BH/Modules/Bnet/Bnet.cpp index a7b2d6ff..ea09fe47 100644 --- a/BH/Modules/Bnet/Bnet.cpp +++ b/BH/Modules/Bnet/Bnet.cpp @@ -149,7 +149,7 @@ void Bnet::RemovePassPatch() { Control* box = *p_D2MULTI_PassBox; BOOL(__stdcall *FunCallBack)(Control*, DWORD, DWORD) = D2MULTI_NeededForPassRemovalIDontKnowRenameIt; - if (Bnet::lastPass.size() == 0) { + if (Bnet::lastPass.size() == 0 || box == nullptr) { __asm { pop esi pop edi