Skip to content

Commit

Permalink
Merge pull request #3 from IAmTrial/planqi
Browse files Browse the repository at this point in the history
Fix crash when selecting a character after making a password game.
  • Loading branch information
planqi authored Jun 7, 2017
2 parents 4025c49 + 081714d commit 005cf29
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 005cf29

Please sign in to comment.