summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-01 08:46:02 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-01 08:46:25 +0100
commit20ea2fde84236c21a9afa21265928502f7cd98d8 (patch)
tree08ef1b78ea6ae3658bcc41d8320288daa14afbb2
parentFix virtual SetModelIndex call in CBoat ctor (diff)
downloadre3-20ea2fde84236c21a9afa21265928502f7cd98d8.tar
re3-20ea2fde84236c21a9afa21265928502f7cd98d8.tar.gz
re3-20ea2fde84236c21a9afa21265928502f7cd98d8.tar.bz2
re3-20ea2fde84236c21a9afa21265928502f7cd98d8.tar.lz
re3-20ea2fde84236c21a9afa21265928502f7cd98d8.tar.xz
re3-20ea2fde84236c21a9afa21265928502f7cd98d8.tar.zst
re3-20ea2fde84236c21a9afa21265928502f7cd98d8.zip
-rw-r--r--src/vehicles/Automobile.cpp2
-rw-r--r--src/vehicles/Train.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index d1a7505e..77a7467a 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -79,7 +79,7 @@ CAutomobile::CAutomobile(int32 id, uint8 CreatedBy)
bBigWheels = false;
bWaterTight = false;
- SetModelIndex(id);
+ CAutomobile::SetModelIndex(id);
// Already done in CVehicle...
switch(GetModelIndex()){
diff --git a/src/vehicles/Train.cpp b/src/vehicles/Train.cpp
index fb8361c5..9f30cfb7 100644
--- a/src/vehicles/Train.cpp
+++ b/src/vehicles/Train.cpp
@@ -45,7 +45,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);