From f54af8b973c0429e6317b3398f26a061e32898f4 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Wed, 17 Jun 2020 02:33:03 +0300 Subject: fixed bar brawl --- src/animation/CutsceneMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/animation/CutsceneMgr.cpp b/src/animation/CutsceneMgr.cpp index 5cd82f6c..03f9c486 100644 --- a/src/animation/CutsceneMgr.cpp +++ b/src/animation/CutsceneMgr.cpp @@ -288,6 +288,10 @@ CCutsceneMgr::SetCutsceneAnim(const char *animName, CObject *pObject) RpAnimBlendClumpRemoveAllAssociations((RpClump*)pObject->m_rwObject); pNewAnim = ms_cutsceneAssociations.CopyAnimation(animName); + if (!pNewAnim) { + debug("\n\nHaven't I told you I can't find the fucking animation %s\n\n\n", animName); + return; + } pNewAnim->SetCurrentTime(0.0f); pNewAnim->flags |= ASSOC_HAS_TRANSLATION; pNewAnim->flags &= ~ASSOC_RUNNING; -- cgit v1.2.3