summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-08 01:19:44 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-08 01:19:44 +0200
commit3e2572669713a7d3ec10a47718bc31b56a8914e2 (patch)
treeacb3be96a96a2bfde2b1cd82deb1d1e7bd70889e /src
parentFixing typo for cursor coords (diff)
downloadre3-3e2572669713a7d3ec10a47718bc31b56a8914e2.tar
re3-3e2572669713a7d3ec10a47718bc31b56a8914e2.tar.gz
re3-3e2572669713a7d3ec10a47718bc31b56a8914e2.tar.bz2
re3-3e2572669713a7d3ec10a47718bc31b56a8914e2.tar.lz
re3-3e2572669713a7d3ec10a47718bc31b56a8914e2.tar.xz
re3-3e2572669713a7d3ec10a47718bc31b56a8914e2.tar.zst
re3-3e2572669713a7d3ec10a47718bc31b56a8914e2.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp5
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;