summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-17 01:33:03 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-17 01:33:03 +0200
commitf54af8b973c0429e6317b3398f26a061e32898f4 (patch)
tree5db3bc62d3971733d66593045077cbab0d02adef /src
parentMerge pull request #632 from majesticCoding/miami (diff)
downloadre3-f54af8b973c0429e6317b3398f26a061e32898f4.tar
re3-f54af8b973c0429e6317b3398f26a061e32898f4.tar.gz
re3-f54af8b973c0429e6317b3398f26a061e32898f4.tar.bz2
re3-f54af8b973c0429e6317b3398f26a061e32898f4.tar.lz
re3-f54af8b973c0429e6317b3398f26a061e32898f4.tar.xz
re3-f54af8b973c0429e6317b3398f26a061e32898f4.tar.zst
re3-f54af8b973c0429e6317b3398f26a061e32898f4.zip
Diffstat (limited to '')
-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;