summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-09 17:14:19 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-09 17:14:19 +0200
commit1f98f01dcb006783755bd58fa458bb515626b2dd (patch)
treea9c26a33b0ae98f19c48a151ae5910422e18816f /src/vehicles
parentAdd sprite to the waypoint marker (diff)
downloadre3-1f98f01dcb006783755bd58fa458bb515626b2dd.tar
re3-1f98f01dcb006783755bd58fa458bb515626b2dd.tar.gz
re3-1f98f01dcb006783755bd58fa458bb515626b2dd.tar.bz2
re3-1f98f01dcb006783755bd58fa458bb515626b2dd.tar.lz
re3-1f98f01dcb006783755bd58fa458bb515626b2dd.tar.xz
re3-1f98f01dcb006783755bd58fa458bb515626b2dd.tar.zst
re3-1f98f01dcb006783755bd58fa458bb515626b2dd.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/CarGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp
index 22b2fc60..ebb767dd 100644
--- a/src/vehicles/CarGen.cpp
+++ b/src/vehicles/CarGen.cpp
@@ -172,8 +172,8 @@ void CCarGenerator::Setup(float x, float y, float z, float angle, int32 mi, int1
m_nTimer = CTimer::GetTimeInMilliseconds() + 1;
m_nUsesRemaining = 0;
m_bIsBlocking = false;
- m_vecInf = CModelInfo::GetModelInfo(m_nModelIndex)->GetColModel()->boundingBox.min;
- m_vecSup = CModelInfo::GetModelInfo(m_nModelIndex)->GetColModel()->boundingBox.max;
+ m_vecInf = CModelInfo::GetColModel(m_nModelIndex)->boundingBox.min;
+ m_vecSup = CModelInfo::GetColModel(m_nModelIndex)->boundingBox.max;
m_fSize = Max(m_vecInf.Magnitude(), m_vecSup.Magnitude());
}