summaryrefslogtreecommitdiff
path: root/src/objects/Object.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-05 15:06:55 +0300
committerSergeanur <s.anureev@yandex.ua>2020-05-05 15:06:55 +0300
commit4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9 (patch)
tree2f970e7b4fc457d3312b8ee3fef2d0de72f6fff8 /src/objects/Object.cpp
parente9b334d7bf270682f83c5c18b2d85a25703c1a2d (diff)
Make CBaseModelInfo fields protected
Diffstat (limited to 'src/objects/Object.cpp')
-rw-r--r--src/objects/Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp
index 1587749d..ab1290b0 100644
--- a/src/objects/Object.cpp
+++ b/src/objects/Object.cpp
@@ -125,7 +125,7 @@ CObject::Render(void)
if(m_nRefModelIndex != -1 && ObjectCreatedBy == TEMP_OBJECT && bUseVehicleColours){
CVehicleModelInfo *mi = (CVehicleModelInfo*)CModelInfo::GetModelInfo(m_nRefModelIndex);
- assert(mi->m_type == MITYPE_VEHICLE);
+ assert(mi->GetModelType() == MITYPE_VEHICLE);
mi->SetVehicleColour(m_colour1, m_colour2);
}