From eb5b927ed1544e528c288e818ba7c99d07db2cb2 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 26 Feb 2014 07:54:44 +0100 Subject: VOYEUR: Fix read out of bounds in Debugger --- engines/voyeur/debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3