diff options
| author | Sergeanur <s.anureev@yandex.ua> | 2020-11-01 09:46:02 +0200 |
|---|---|---|
| committer | Sergeanur <s.anureev@yandex.ua> | 2020-11-01 09:46:02 +0200 |
| commit | 5711251b0fcf3333c2f96b48dd784fe4c6e1ba25 (patch) | |
| tree | 26831d14d35706602abc178c1fa779723e214ea9 /src/vehicles/Train.cpp | |
| parent | Fix virtual SetModelIndex call in CBoat ctor (diff) | |
| download | re3-5711251b0fcf3333c2f96b48dd784fe4c6e1ba25.tar.gz | |
Also fix SetModelIndex in CAutomobile and CTrain ctors
Diffstat (limited to 'src/vehicles/Train.cpp')
| -rw-r--r-- | src/vehicles/Train.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Train.cpp b/src/vehicles/Train.cpp index 26d0dee7..98d522a7 100644 --- a/src/vehicles/Train.cpp +++ b/src/vehicles/Train.cpp @@ -44,7 +44,7 @@ CTrain::CTrain(int32 id, uint8 CreatedBy) CVehicleModelInfo *mi = (CVehicleModelInfo*)CModelInfo::GetModelInfo(id); m_vehType = VEHICLE_TYPE_TRAIN; pHandling = mod_HandlingManager.GetHandlingData((eHandlingId)mi->m_handlingId); - SetModelIndex(id); + CTrain::SetModelIndex(id); Doors[0].Init(0.8f, 0.0f, 1, 0); Doors[1].Init(-0.8f, 0.0f, 0, 0); |
