summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Train.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-13 13:01:20 +0100
committeraap <aap@papnet.eu>2021-01-13 13:01:20 +0100
commite3a261d29cbb10abc0776ca697512349845a105c (patch)
tree00ac13e7cad5e8bbdc0d22eb4ad9e62c046b93e2 /src/vehicles/Train.cpp
parentPort cmake improvements to miami (diff)
downloadre3-e3a261d29cbb10abc0776ca697512349845a105c.tar
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.gz
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.bz2
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.lz
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.xz
re3-e3a261d29cbb10abc0776ca697512349845a105c.tar.zst
re3-e3a261d29cbb10abc0776ca697512349845a105c.zip
Diffstat (limited to 'src/vehicles/Train.cpp')
-rw-r--r--src/vehicles/Train.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Train.cpp b/src/vehicles/Train.cpp
index 1a4af307..5f0cf36a 100644
--- a/src/vehicles/Train.cpp
+++ b/src/vehicles/Train.cpp
@@ -388,7 +388,7 @@ void
CTrain::AddPassenger(CPed *ped)
{
#ifdef GTA_TRAIN
- int i = ped->m_vehEnterType;
+ int i = ped->m_vehDoor;
if((i == TRAIN_POS_LEFT_ENTRY || i == TRAIN_POS_MID_ENTRY || i == TRAIN_POS_RIGHT_ENTRY) && pPassengers[i] == nil){
pPassengers[i] = ped;
m_nNumPassengers++;