aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-02-06 16:30:32 +0000
committerFilippos Karapetis2010-02-06 16:30:32 +0000
commit2cfa5e428cecbf27509018c34d847be0301c302e (patch)
tree1ec98506c4f25bccbf97a1f954e1798018e33430 /engines
parent788f375703892dae18d9f01bbda2d18f5881d1f7 (diff)
downloadscummvm-rg350-2cfa5e428cecbf27509018c34d847be0301c302e.tar.gz
scummvm-rg350-2cfa5e428cecbf27509018c34d847be0301c302e.tar.bz2
scummvm-rg350-2cfa5e428cecbf27509018c34d847be0301c302e.zip
Mark the sanity checks inside kernelSetNowSeen and kernelBaseSetter as hacks
svn-id: r47932
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/compare.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/compare.cpp b/engines/sci/graphics/compare.cpp
index 5c7d932a33..689c871e64 100644
--- a/engines/sci/graphics/compare.cpp
+++ b/engines/sci/graphics/compare.cpp
@@ -116,6 +116,8 @@ void GfxCompare::kernelSetNowSeen(reg_t objectReference) {
GfxView *view = NULL;
Common::Rect celRect(0, 0);
GuiResourceId viewId = (GuiResourceId)GET_SEL32V(_segMan, objectReference, SELECTOR(view));
+
+ // HACK: Ignore invalid views for now (perhaps unimplemented text views?)
if (viewId == 0xFFFF) // invalid view
return;
@@ -185,6 +187,7 @@ void GfxCompare::kernelBaseSetter(reg_t object) {
int16 loopNo = GET_SEL32V(_segMan, object, SELECTOR(loop));
int16 celNo = GET_SEL32V(_segMan, object, SELECTOR(cel));
+ // HACK: Ignore invalid views for now (perhaps unimplemented text views?)
if (viewId == 0xFFFF) // invalid view
return;