aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/teenagent/animation.cpp')
-rw-r--r--engines/teenagent/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/animation.cpp b/engines/teenagent/animation.cpp
index ce1fef009e..56812001e8 100644
--- a/engines/teenagent/animation.cpp
+++ b/engines/teenagent/animation.cpp
@@ -112,7 +112,7 @@ void Animation::load(Common::SeekableReadStream *s, Type type) {
//fixme: do not reload the same animation each time
free();
- if (s == NULL && s->size() <= 1) {
+ if (s == NULL || s->size() <= 1) {
debug(1, "empty animation");
return;
}