mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed object_fix_weapon_ammo_ engine function
(was incorrectly checking Misc "object" type instead of item subtype.)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user