From c62aa261afbb9fb04b85c9999abd797a2a4289b9 Mon Sep 17 00:00:00 2001 From: NovaRain Date: Wed, 14 Aug 2024 13:38:46 +0800 Subject: [PATCH] Fixed object_fix_weapon_ammo_ engine function (was incorrectly checking Misc "object" type instead of item subtype.) --- sfall/Modules/BugFixes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sfall/Modules/BugFixes.cpp b/sfall/Modules/BugFixes.cpp index 1e7d858fb..a114320cb 100644 --- a/sfall/Modules/BugFixes.cpp +++ b/sfall/Modules/BugFixes.cpp @@ -4273,6 +4273,10 @@ void BugFixes::init() { // Fix for using_skill function returning garbage values when the arguments are not the player and SKILL_SNEAK MakeCall(0x4546A5, op_using_skill_hack, 1); + + // Fix for object_fix_weapon_ammo_ engine function not checking "misc" type items + SafeWrite8(0x48916B, 0x41); // jnz 0x4891AD + SafeWrite8(0x4891C8, CodeType::JumpShort); // jmp 0x4891E9 (skip proto data correction) } }