Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Also fix SetModelIndex in CAutomobile and CTrain ctors
  • Loading branch information
Sergeanur committed Nov 1, 2020
1 parent 3c4f166 commit 5711251b0fcf3333c2f96b48dd784fe4c6e1ba25
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/vehicles/Automobile.cpp
  2. +1 −1 src/vehicles/Train.cpp
@@ -73,7 +73,7 @@ CAutomobile::CAutomobile(int32 id, uint8 CreatedBy)
bBigWheels = false;
bWaterTight = false;

SetModelIndex(id);
CAutomobile::SetModelIndex(id);

pHandling = mod_HandlingManager.GetHandlingData((eHandlingId)mi->m_handlingId);

@@ -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);

0 comments on commit 5711251

Please sign in to comment.