aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-07-30 06:18:28 +0000
committerFilippos Karapetis2010-07-30 06:18:28 +0000
commitc77eefad2481320f59f015b81abb59d67d997556 (patch)
tree43b5a9d94a4b396c629ba4ee8e907adc0933c3b3 /engines/sci
parentd4aa4bc4d49e01d2e66cace53d3194a9d51a4b91 (diff)
downloadscummvm-rg350-c77eefad2481320f59f015b81abb59d67d997556.tar.gz
scummvm-rg350-c77eefad2481320f59f015b81abb59d67d997556.tar.bz2
scummvm-rg350-c77eefad2481320f59f015b81abb59d67d997556.zip
SCI: Added a case for 10 params inside kSetCursorSci11(), thus fixing the crash from bug #3034973 - "PHARKAS: Crash early in game'
svn-id: r51497
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kgraphics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 56518f10bf..db5b7d1482 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -174,6 +174,12 @@ static reg_t kSetCursorSci11(EngineState *s, int argc, reg_t *argv) {
}
case 5:
case 9:
+ case 10: // Freddy Pharkas, when using the whiskey glass to read
+ // the prescription (bug #3034973) - looks like an erroneous
+ // extra param
+ // TODO: We don't really use parameter indices 6-10 (with no side
+ // effects), are they used for something, or are these a result of
+ // script bugs?
hotspot = new Common::Point(argv[3].toSint16(), argv[4].toSint16());
// Fallthrough
case 3: