diff --git a/StuntBonusV/Extensions.cs b/StuntBonusV/Extensions.cs index 8c9b969..62e34b7 100644 --- a/StuntBonusV/Extensions.cs +++ b/StuntBonusV/Extensions.cs @@ -265,7 +265,9 @@ internal static bool IsWheelTouching(IntPtr wheelAddress) unsafe { - return (*((byte*)wheelAddress.ToPointer() + 0x1EC) & 0x1) != 0; + var offset = Game.Version >= GameVersion.VER_1_0_372_2_STEAM ? 0x1EC : 0x1DC; + offset = Game.Version >= GameVersion.VER_1_0_1290_1_STEAM ? 0x1E4 : offset; + return (*((byte*)wheelAddress.ToPointer() + offset) & 0x1) != 0; } } diff --git a/StuntBonusV/StuntBonusV.csproj b/StuntBonusV/StuntBonusV.csproj index b147926..f8f8361 100644 --- a/StuntBonusV/StuntBonusV.csproj +++ b/StuntBonusV/StuntBonusV.csproj @@ -71,6 +71,7 @@ +