summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-24 22:48:32 +0100
committeraap <aap@papnet.eu>2021-01-24 22:50:16 +0100
commitce7f166ba387c5368d500faffa676243bc9a3476 (patch)
tree438e06233fc4e02891b120733d84e8c9a93d95ac /src/vehicles
parentCPedModelInfo and CTempColModels (diff)
downloadre3-ce7f166ba387c5368d500faffa676243bc9a3476.tar
re3-ce7f166ba387c5368d500faffa676243bc9a3476.tar.gz
re3-ce7f166ba387c5368d500faffa676243bc9a3476.tar.bz2
re3-ce7f166ba387c5368d500faffa676243bc9a3476.tar.lz
re3-ce7f166ba387c5368d500faffa676243bc9a3476.tar.xz
re3-ce7f166ba387c5368d500faffa676243bc9a3476.tar.zst
re3-ce7f166ba387c5368d500faffa676243bc9a3476.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Automobile.cpp2
-rw-r--r--src/vehicles/Vehicle.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index a4d9e5c3..6d6b4833 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -4174,7 +4174,7 @@ CAutomobile::dmgDrawCarCollidingParticles(const CVector &pos, float amount)
CGeneral::GetRandomNumberInRange(0.1f, 0.25f)),
nil,
CGeneral::GetRandomNumberInRange(0.02f, 0.08f),
- CVehicleModelInfo::ms_vehicleColourTable[m_currentColour1],
+ CVehicleModelInfo::mspInfo->ms_vehicleColourTable[m_currentColour1],
CGeneral::GetRandomNumberInRange(-40.0f, 40.0f),
0,
CGeneral::GetRandomNumberInRange(0.0f, 4.0f));
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 02852cee..3a6fb624 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -217,8 +217,8 @@ void
CVehicle::SetModelIndex(uint32 id)
{
CEntity::SetModelIndex(id);
- m_aExtras[0] = CVehicleModelInfo::ms_compsUsed[0];
- m_aExtras[1] = CVehicleModelInfo::ms_compsUsed[1];
+ m_aExtras[0] = CVehicleModelInfo::mspInfo->ms_compsUsed[0];
+ m_aExtras[1] = CVehicleModelInfo::mspInfo->ms_compsUsed[1];
m_nNumMaxPassengers = CVehicleModelInfo::GetMaximumNumberOfPassengersFromNumberOfDoors(id);
}