From 06a018f9aa8496983cbb2bd8eee3490ad074e141 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 5 Mar 2017 23:14:26 +0100 Subject: [PATCH] this is better --- SilentPatchSA/SilentPatchSA.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 64c42d7..d682293 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -4291,9 +4291,9 @@ void Patch_SA_NewSteam_Common() // AI accuracy issue { - auto patternie = pattern( "8B 82 8C 05 00 00 85 C0 74 09" ).count(1); // 0x76DEA7 in newsteam r1 - Nop(patternie.get(0).get(0), 1); - InjectHook( patternie.get(0).get(1), WeaponRangeMult_VehicleCheck, PATCH_CALL ); + auto match = pattern( "8B 82 8C 05 00 00 85 C0 74 09" ).get_one(); // 0x76DEA7 in newsteam r1 + Nop(match.get(0), 1); + InjectHook( match.get(1), WeaponRangeMult_VehicleCheck, PATCH_CALL ); } }