aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2015-01-04 19:23:43 +0100
committerEugene Sandulenko2015-01-04 19:23:43 +0100
commit882e0ca8cbc507cfba8dec1a340be9f5462069c3 (patch)
treeb2e1d5180d25d197b06a870e68a86f69357b02f6 /engines
parent4393d38a311df69f473febc5c2fdf135694609e9 (diff)
downloadscummvm-rg350-882e0ca8cbc507cfba8dec1a340be9f5462069c3.tar.gz
scummvm-rg350-882e0ca8cbc507cfba8dec1a340be9f5462069c3.tar.bz2
scummvm-rg350-882e0ca8cbc507cfba8dec1a340be9f5462069c3.zip
FULLPIPE: Sanity check
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/statics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 6b35159fd1..de3e1ea728 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -1597,6 +1597,12 @@ Movement::Movement(Movement *src, int *oldIdxs, int newSize, StaticANIObject *an
newSize = src->_dynamicPhases.size();
}
+ if (!newSize) {
+ warning("Movement::Movement: newSize = 0");
+
+ return;
+ }
+
_framePosOffsets = (Common::Point **)calloc(newSize, sizeof(Common::Point *));
for (int i = 0; i < newSize; i++)