diff options
author | Filippos Karapetis | 2010-06-18 00:49:55 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-18 00:49:55 +0000 |
commit | 949493d14160530a37c02f2440f41e5dac49e725 (patch) | |
tree | 8c6afc19c729c6b8496f5713aeae58261eb02dc7 /engines/sci/engine/kgraphics.cpp | |
parent | 880e07250ea86416c29fde16341429f347dc4d8a (diff) | |
download | scummvm-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/kgraphics.cpp')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 5 |
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()) |