diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-24 21:14:05 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-24 21:14:05 +0200 |
commit | 85cf043e4a71fc469781324cf5beecf4ecf98d8a (patch) | |
tree | ed3ebc36bd2611e9fec068283b6361cc993746fc /src/animation/CutsceneMgr.cpp | |
parent | CutsceneMgr done (diff) | |
download | re3-85cf043e4a71fc469781324cf5beecf4ecf98d8a.tar re3-85cf043e4a71fc469781324cf5beecf4ecf98d8a.tar.gz re3-85cf043e4a71fc469781324cf5beecf4ecf98d8a.tar.bz2 re3-85cf043e4a71fc469781324cf5beecf4ecf98d8a.tar.lz re3-85cf043e4a71fc469781324cf5beecf4ecf98d8a.tar.xz re3-85cf043e4a71fc469781324cf5beecf4ecf98d8a.tar.zst re3-85cf043e4a71fc469781324cf5beecf4ecf98d8a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/animation/CutsceneMgr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/animation/CutsceneMgr.cpp b/src/animation/CutsceneMgr.cpp index e6a072ff..31128990 100644 --- a/src/animation/CutsceneMgr.cpp +++ b/src/animation/CutsceneMgr.cpp @@ -578,10 +578,11 @@ CCutsceneMgr::AttachObjectToFrame(CObject *pObject, CEntity *pAttachTo, const ch CModelInfo::GetModelInfo(pObject->GetModelIndex())->GetName(), frame, CModelInfo::GetModelInfo(pAttachTo->GetModelIndex())->GetName()); - RpClump* clump = pObject->GetClump(); - if (RwObjectGetType(clump) == rpCLUMP) + if (RwObjectGetType(pObject->m_rwObject) == rpCLUMP) { + RpClump *clump = (RpClump*)pObject->m_rwObject; if (IsClumpSkinned(clump)) RpAtomicGetBoundingSphere(GetFirstAtomic(clump))->radius *= 1.1f; + } } void |