Fixed crash when aboarding train
This commit is contained in:
parent
9fa799522e
commit
3e25726697
@ -11522,8 +11522,7 @@ void
|
|||||||
CPed::PedSetInTrainCB(CAnimBlendAssociation* animAssoc, void* arg)
|
CPed::PedSetInTrainCB(CAnimBlendAssociation* animAssoc, void* arg)
|
||||||
{
|
{
|
||||||
CPed *ped = (CPed*)arg;
|
CPed *ped = (CPed*)arg;
|
||||||
|
CTrain *veh = (CTrain*)ped->m_pMyVehicle;
|
||||||
CVehicle* veh = ped->m_pMyVehicle;
|
|
||||||
|
|
||||||
if (!veh)
|
if (!veh)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user