aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-18 00:49:55 +0000
committerFilippos Karapetis2010-06-18 00:49:55 +0000
commit949493d14160530a37c02f2440f41e5dac49e725 (patch)
tree8c6afc19c729c6b8496f5713aeae58261eb02dc7 /engines/sci/engine
parent880e07250ea86416c29fde16341429f347dc4d8a (diff)
downloadscummvm-rg350-949493d14160530a37c02f2440f41e5dac49e725.tar.gz
scummvm-rg350-949493d14160530a37c02f2440f41e5dac49e725.tar.bz2
scummvm-rg350-949493d14160530a37c02f2440f41e5dac49e725.zip
Fixed invalid memory read in GK1CD
svn-id: r49980
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 7f5ae82a99..348855964c 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -246,9 +246,10 @@ reg_t kGraph(EngineState *s, int argc, reg_t *argv) {
switch (argv[0].toSint16()) {
case 1:
- // Happens in GK1CD, right when it starts
+ // TODO: Happens in GK1CD, right when it starts
warning("Unsupported kGraph() operation %04x", argv[0].toSint16());
- return s->r_acc;
+ // Returns an integer
+ return SIGNAL_REG;
case K_GRAPH_GET_COLORS_NR:
if (g_sci->getResMan()->isAmiga32color())