Fixed crash when aboarding train

This commit is contained in:
Sergeanur 2019-10-08 02:19:44 +03:00
parent 9fa799522e
commit 3e25726697

View File

@ -11522,8 +11522,7 @@ void
CPed::PedSetInTrainCB(CAnimBlendAssociation* animAssoc, void* arg)
{
CPed *ped = (CPed*)arg;
CVehicle* veh = ped->m_pMyVehicle;
CTrain *veh = (CTrain*)ped->m_pMyVehicle;
if (!veh)
return;