diff options
author | Strangerke | 2014-02-26 07:54:44 +0100 |
---|---|---|
committer | Strangerke | 2014-02-26 07:54:44 +0100 |
commit | eb5b927ed1544e528c288e818ba7c99d07db2cb2 (patch) | |
tree | 10534e43ac9e8d550a1d2eea9c5e3f3f67b455a5 /engines/voyeur/debugger.cpp | |
parent | 0b57c1771ef54df5e740dac278c743a55eef9372 (diff) | |
download | scummvm-rg350-eb5b927ed1544e528c288e818ba7c99d07db2cb2.tar.gz scummvm-rg350-eb5b927ed1544e528c288e818ba7c99d07db2cb2.tar.bz2 scummvm-rg350-eb5b927ed1544e528c288e818ba7c99d07db2cb2.zip |
VOYEUR: Fix read out of bounds in Debugger
Diffstat (limited to 'engines/voyeur/debugger.cpp')
-rw-r--r-- | engines/voyeur/debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/voyeur/debugger.cpp b/engines/voyeur/debugger.cpp index 456a59b465..04a6597b16 100644 --- a/engines/voyeur/debugger.cpp +++ b/engines/voyeur/debugger.cpp @@ -71,7 +71,7 @@ bool Debugger::Cmd_Time(int argc, const char **argv) { } } else { int timeId = atoi(argv[1]); - if (timeId >= 1 && timeId <= 17) { + if (timeId >= 1 && timeId < 17) { int stateId = TIME_STATES[timeId - 1]; if (!stateId) { DebugPrintf("Given time period is not used in-game\n"); |