From 85cf043e4a71fc469781324cf5beecf4ecf98d8a Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Mon, 24 Aug 2020 22:14:05 +0300 Subject: [PATCH] Compilation fix --- src/animation/CutsceneMgr.cpp | 5 +++-- 1 file 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