Skip to content

Commit

Permalink
fix(gta-net-five): fixed compilation error after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
prikolium-cfx committed Nov 13, 2024
1 parent 3027f0c commit 4f7d5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/components/gta-net-five/src/CloneObjectManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void netObjectMgrBase__ChangeOwner(rage::netObjectMgr* manager, rage::net
if (CVehicle* train = (CVehicle*)object->GetGameObject())
{
// Ensure this is the engine and the client has no knowledge of the trains current track node.
if (CTrain__IsCarriageEngine(train) && *(int*)((uintptr_t)train + TrainTrackNodeIndexOffset) == 0)
if (CTrain__IsCarriageEngine(train) && *(int*)((uintptr_t)train + g_trainTrackNodeIndexOffset) == 0)
{
//Find the trains track node based on its current location
CTrain__SetTrainCoord(train, -1, -1);
Expand Down

0 comments on commit 4f7d5fa

Please sign in to comment.