aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/cine.h
diff options
context:
space:
mode:
authorDavid Turner2010-12-31 09:14:49 +0000
committerDavid Turner2010-12-31 09:14:49 +0000
commitf96c8f6e39e39a92adfeeb07db78861ee7383226 (patch)
treefcd696c763ed2b86b3bd11c8d58ec31db0cb5fb9 /engines/cine/cine.h
parentc9330fb79eb5703aa3fccfe31a4631209ceecbc0 (diff)
downloadscummvm-rg350-f96c8f6e39e39a92adfeeb07db78861ee7383226.tar.gz
scummvm-rg350-f96c8f6e39e39a92adfeeb07db78861ee7383226.tar.bz2
scummvm-rg350-f96c8f6e39e39a92adfeeb07db78861ee7383226.zip
CINE: Fix CollisionPage Uninitialised Reads in Operation Stealth.
The collisionPage is only initialised with values when loadCtFw() / loadCtOS() is called. However, currently during the display of the Delphine Software Logo in Operation Stealth, checkCollision() is called, but the collisionPage has not been loaded. To fix the invalid reads, have added code to set the page to zero after allocation. Shouldn't cause any issues to FW as this will load over the top anyway. Have also added debug output around this behaviour so that if this is not sufficient i.e. a collision page load is actually missing, then this will aid investigation. svn-id: r55071
Diffstat (limited to 'engines/cine/cine.h')
-rw-r--r--engines/cine/cine.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/cine/cine.h b/engines/cine/cine.h
index dd00d9b206..5f49a2907f 100644
--- a/engines/cine/cine.h
+++ b/engines/cine/cine.h
@@ -217,9 +217,10 @@ enum {
};
enum {
- kCineDebugScript = 1 << 0,
- kCineDebugPart = 1 << 1,
- kCineDebugSound = 1 << 2
+ kCineDebugScript = 1 << 0,
+ kCineDebugPart = 1 << 1,
+ kCineDebugSound = 1 << 2,
+ kCineDebugCollision = 1 << 3
};
enum {