Make CBaseModelInfo fields protected

This commit is contained in:
Sergeanur committed 2020-05-05 15:06:55 +03:00
1 parent e9b334d7bf
commit 4cc1bb92e7
14 files changed
+62 -63

No files matched your search

+1 -1
View File
@@ -8074,7 +8074,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
continue;
// desperatly want to believe this was inlined :|
CBaseModelInfo* pInfo = CModelInfo::GetModelInfo(model);
assert(pInfo->m_type == MITYPE_VEHICLE);
assert(pInfo->GetModelType() == MITYPE_VEHICLE);
CVehicleModelInfo* pVehicleInfo = (CVehicleModelInfo*)pInfo;
if (pVehicleInfo->m_vehicleType != VEHICLE_TYPE_CAR) {
switch (model) {