diff options
author | Eugene Sandulenko | 2016-05-10 10:08:29 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 12:14:57 +0200 |
commit | 7b1c738f0ffe17dff6ca0be36b893d2cda664426 (patch) | |
tree | e710398966f1390bcf341f4590f8d55a16aecca6 | |
parent | 5981ef48daf09475c089334402316161bb617d81 (diff) | |
download | scummvm-rg350-7b1c738f0ffe17dff6ca0be36b893d2cda664426.tar.gz scummvm-rg350-7b1c738f0ffe17dff6ca0be36b893d2cda664426.tar.bz2 scummvm-rg350-7b1c738f0ffe17dff6ca0be36b893d2cda664426.zip |
GNAP: Fix initialization and out-of-bounds write
-rw-r--r-- | engines/gnap/scenes/arcade.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gnap/scenes/arcade.cpp b/engines/gnap/scenes/arcade.cpp index a4bde9f1fe..22f661b1b0 100644 --- a/engines/gnap/scenes/arcade.cpp +++ b/engines/gnap/scenes/arcade.cpp @@ -1033,7 +1033,7 @@ Scene51::Scene51(GnapEngine *vm) : Scene(vm) { for (int i = 0; i < 4; i++) { _digits[i] = 0; - _digitSequenceIds[4] = -1; + _digitSequenceIds[i] = -1; } for (int i = 0; i < 6; i++) { |