aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2014-02-26 07:54:44 +0100
committerStrangerke2014-02-26 07:54:44 +0100
commiteb5b927ed1544e528c288e818ba7c99d07db2cb2 (patch)
tree10534e43ac9e8d550a1d2eea9c5e3f3f67b455a5 /engines/voyeur
parent0b57c1771ef54df5e740dac278c743a55eef9372 (diff)
downloadscummvm-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')
-rw-r--r--engines/voyeur/debugger.cpp2
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");