Skip to content

Commit

Permalink
ClickBeltRight stub was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
noah- committed Jul 10, 2017
1 parent 89227f6 commit 9508648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion D2BS.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define XP_WIN

#define D2BS_VERSION "1.5.1866" //uptodate with d branch 1765 ff 20b
#define D2BS_VERSION "1.5.1867" //uptodate with d branch 1765 ff 20b

#include <windows.h>
#include <vector>
Expand Down
8 changes: 3 additions & 5 deletions D2Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,11 +845,9 @@ void __declspec(naked) __fastcall D2CLIENT_ClickBeltRight_ASM(DWORD pInventory,
{
__asm
{
mov eax, [esp + 4]
push eax
mov eax, [esp + 8 + 4]
call D2CLIENT_ClickBeltRight_I
retn 8
pop eax // pop return address
xchg eax, [esp] // return address to stack, location to eax
jmp D2CLIENT_ClickBeltRight_I
}
}

Expand Down

0 comments on commit 9508648

Please sign in to comment.