aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2006-03-13 11:40:40 +0000
committerPaul Gilbert2006-03-13 11:40:40 +0000
commitc5d90e026fcf46b7b566220acc1c5303073c020c (patch)
tree76ffd5f49b819ff32d21720f64fe369d96dbff75 /engines/lure
parentc44069fdfc0cf79602bee3901008725c1e81b979 (diff)
downloadscummvm-rg350-c5d90e026fcf46b7b566220acc1c5303073c020c.tar.gz
scummvm-rg350-c5d90e026fcf46b7b566220acc1c5303073c020c.tar.bz2
scummvm-rg350-c5d90e026fcf46b7b566220acc1c5303073c020c.zip
Fix to remove warning on validating frame offsets in animation decoder
svn-id: r21257
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/hotspots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 01da3ab674..443ec33109 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -175,7 +175,7 @@ void Hotspot::setAnimation(HotspotAnimData *newRecord) {
if ((newRecord->flags & PIXELFLAG_HAS_TABLE) != 0) {
// For animations with an offset table, set the source point for each frame
uint16 frameOffset = *((uint16 *) (src->data() + ((frameCtr + 1) * sizeof(uint16)))) + 0x40;
- if (frameOffset + _height * (_width / 2) > dest->size())
+ if ((uint32) frameOffset + _height * (_width / 2) > dest->size())
error("Invalid frame offset in animation %x", newRecord->animRecordId);
pSrc = dest->data() + frameOffset;
}