Skip to content

Commit

Permalink
Revert change made in #2 with offset for vehicle ID (unsure if this w…
Browse files Browse the repository at this point in the history
…as faulty or just outdated, see #13)
  • Loading branch information
codecat committed Jan 4, 2024
1 parent 3f57bdf commit cba305d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Internal/Vehicle/VehicleNext.as
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace VehicleState
if (type is null) {
error("Unable to find reflection info for CSmPlayer!");
}
g_offsetSpawnableObjectModelIndex = type.GetMember("SpawnableObjectModelIndex").Offset - 0x20;
g_offsetSpawnableObjectModelIndex = type.GetMember("SpawnableObjectModelIndex").Offset - 0x14;
}

// Get the ID and make sure it actually matches the 0x02000000 mask
Expand Down

0 comments on commit cba305d

Please sign in to comment.