aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorVladimir Menshakov2010-10-15 05:50:19 +0000
committerVladimir Menshakov2010-10-15 05:50:19 +0000
commitbacbf0890071c51f064bb13d7c341e7d8cdf1da2 (patch)
tree25774ad2d288b7686b9b3a6716078be88b680ebd /engines
parent089988c11c379e1b48c198a867215365373f6b11 (diff)
downloadscummvm-rg350-bacbf0890071c51f064bb13d7c341e7d8cdf1da2.tar.gz
scummvm-rg350-bacbf0890071c51f064bb13d7c341e7d8cdf1da2.tar.bz2
scummvm-rg350-bacbf0890071c51f064bb13d7c341e7d8cdf1da2.zip
Bug #3087858: fixed null pointer dereferencing
svn-id: r53465
Diffstat (limited to 'engines')
-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;
}