aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-07-07 15:39:18 +0000
committerDenis Kasak2009-07-07 15:39:18 +0000
commitc258eefc82517274f2b98fd13e4959686ba9e4a5 (patch)
tree2187ad01a5f731f193ecfe3f2aeba67bc6a6a8a0
parentd519626c55831653c9a595822f502f84a1e51c9c (diff)
downloadscummvm-rg350-c258eefc82517274f2b98fd13e4959686ba9e4a5.tar.gz
scummvm-rg350-c258eefc82517274f2b98fd13e4959686ba9e4a5.tar.bz2
scummvm-rg350-c258eefc82517274f2b98fd13e4959686ba9e4a5.zip
Made AnimationManager::getAnimation() return NULL when an animation is not found instead of Common::List<>::end().
svn-id: r42228
-rw-r--r--engines/draci/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index cfc6619c80..09ee48ab55 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -174,7 +174,7 @@ Animation *AnimationManager::getAnimation(int id) {
}
}
- return *_animations.end();
+ return NULL;
}
void AnimationManager::insertAnimation(Animation *animObj) {