summaryrefslogtreecommitdiff
path: root/src/animation
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-17 02:33:03 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-17 02:33:03 +0300
commitf54af8b973c0429e6317b3398f26a061e32898f4 (patch)
tree5db3bc62d3971733d66593045077cbab0d02adef /src/animation
parentee456481cb2c9579e0015b85710b08a840144b2c (diff)
fixed bar brawl
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/CutsceneMgr.cpp4
1 files changed, 4 insertions, 0 deletions
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;