diff --git a/SilentPatchVC/SilentPatchVC.cpp b/SilentPatchVC/SilentPatchVC.cpp index 2edc132..d3604eb 100644 --- a/SilentPatchVC/SilentPatchVC.cpp +++ b/SilentPatchVC/SilentPatchVC.cpp @@ -260,12 +260,12 @@ namespace ZeroAmmoFix { template -static void (__fastcall *orgGiveWeapon)(void* ped, void*, unsigned int weapon, unsigned int ammo); +static void (__fastcall *orgGiveWeapon)(void* ped, void*, unsigned int weapon, unsigned int ammo, bool flag); template -static void __fastcall GiveWeapon_SP(void* ped, void*, unsigned int weapon, unsigned int ammo) +static void __fastcall GiveWeapon_SP(void* ped, void*, unsigned int weapon, unsigned int ammo, bool flag) { - orgGiveWeapon(ped, nullptr, weapon, std::max(1u, ammo)); + orgGiveWeapon(ped, nullptr, weapon, std::max(1u, ammo), flag); } HOOK_EACH_FUNC(GiveWeapon, orgGiveWeapon, GiveWeapon_SP);