Skip to content

Commit

Permalink
Fix crash when selecting a character after making a password game.
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmTrial committed Jun 7, 2017
1 parent fc7e562 commit 081714d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BH/Modules/Bnet/Bnet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 081714d

Please sign in to comment.