From f0528740a48cfb83200d4115fa725d573df4bd71 Mon Sep 17 00:00:00 2001 From: NovaRain Date: Mon, 22 Aug 2016 09:42:01 +0800 Subject: [PATCH] Removed the redundant loop in the unlimited ammo exploit fix. --- sfall/Bugs.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/sfall/Bugs.cpp b/sfall/Bugs.cpp index 2e80554e..cae6d15c 100644 --- a/sfall/Bugs.cpp +++ b/sfall/Bugs.cpp @@ -296,7 +296,6 @@ static void __declspec(naked) invenWieldFunc_item_get_type_hook() { xchg edx, eax // eax = who, edx = item call item_remove_mult_ xchg ebx, eax -nextWeapon: mov eax, esi test cl, 0x2 // Right hand? jz leftHand // No @@ -308,7 +307,6 @@ removeFlag: test eax, eax jz noWeapon and byte ptr [eax+0x27], 0xFC // Unset flag of a weapon in hand - jmp nextWeapon noWeapon: or byte ptr [edi+0x27], cl // Set flag of a weapon in hand inc ebx