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 ); } }