From b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 23 Aug 2021 14:13:30 +0200 Subject: CModelInfo done --- src/modelinfo/BaseModelInfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modelinfo/BaseModelInfo.cpp') diff --git a/src/modelinfo/BaseModelInfo.cpp b/src/modelinfo/BaseModelInfo.cpp index 6d1a7c79..9af21da0 100644 --- a/src/modelinfo/BaseModelInfo.cpp +++ b/src/modelinfo/BaseModelInfo.cpp @@ -22,8 +22,8 @@ CBaseModelInfo::CBaseModelInfo(ModelInfoType type) m_num2dEffects = 0; m_bOwnsColModel = false; m_nameKey = 0; - m_unk1 = 0; - m_unk2 = 0; + m_unk[0] = 0; + m_unk[1] = 0; m_name = new char[MAX_MODEL_NAME]; *(int32*)m_name = 0; } @@ -112,7 +112,7 @@ CBaseModelInfo::Add2dEffect(C2dEffect *fx) if(m_2dEffectsID >= 0) m_num2dEffects++; else{ - m_2dEffectsID = CModelInfo::Get2dEffectStore().GetIndex(fx); + m_2dEffectsID = CModelInfo::Get2dEffectIndex(fx); m_num2dEffects = 1; } } @@ -121,7 +121,7 @@ C2dEffect* CBaseModelInfo::Get2dEffect(int n) { if(m_2dEffectsID >= 0) - return CModelInfo::Get2dEffectStore().GetItem(m_2dEffectsID+n); + return CModelInfo::Get2dEffect(m_2dEffectsID+n); else return nil; } -- cgit v1.2.3