diff options
-rw-r--r-- | src/peds/Ped.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index e9ed2103..4488072e 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -11521,9 +11521,8 @@ CPed::PedSetInCarCB(CAnimBlendAssociation *animAssoc, void *arg) void CPed::PedSetInTrainCB(CAnimBlendAssociation* animAssoc, void* arg) { - CPed* ped = (CPed*)arg; - - CVehicle* veh = ped->m_pMyVehicle; + CPed *ped = (CPed*)arg; + CTrain *veh = (CTrain*)ped->m_pMyVehicle; if (!veh) return; |