diff options
author | aap <aap@papnet.eu> | 2021-08-23 14:13:30 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-08-23 14:13:30 +0200 |
commit | b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab (patch) | |
tree | 9dba6051f14139261657ae5a61842e4a8179bf4b /src/modelinfo/BaseModelInfo.cpp | |
parent | revision (diff) | |
download | re3-b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab.tar re3-b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab.tar.gz re3-b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab.tar.bz2 re3-b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab.tar.lz re3-b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab.tar.xz re3-b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab.tar.zst re3-b89dd7f0e32d895ba275f0a9d0bce8797b6e2fab.zip |
Diffstat (limited to 'src/modelinfo/BaseModelInfo.cpp')
-rw-r--r-- | src/modelinfo/BaseModelInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |