Fix a bunch of CModelInfo::GetModelInfo->GetColModel calls, part 2

This commit is contained in:
Sergeanur
2021-08-11 08:42:26 +03:00
parent d7a28c4d2b
commit 463fdab6a4
3 changed files with 6 additions and 6 deletions

View File

@ -928,7 +928,7 @@ CEscalator::AddThisOne(CVector pos0, CVector pos1, CVector pos2, CVector pos3, b
m_pos2 = pos2;
m_pos3 = pos3;
float escalatorStepHeight = CModelInfo::GetModelInfo(MI_ESCALATORSTEP)->GetColModel()->boundingBox.max.z;
float escalatorStepHeight = CModelInfo::GetColModel(MI_ESCALATORSTEP)->boundingBox.max.z;
m_pos0.z -= escalatorStepHeight;
m_pos1.z -= escalatorStepHeight;
m_pos2.z -= escalatorStepHeight;