[Scummvm-cvs-logs] scummvm master -> eb5b927ed1544e528c288e818ba7c99d07db2cb2
Strangerke
Strangerke at scummvm.org
Wed Feb 26 07:56:23 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
eb5b927ed1 VOYEUR: Fix read out of bounds in Debugger
Commit: eb5b927ed1544e528c288e818ba7c99d07db2cb2
https://github.com/scummvm/scummvm/commit/eb5b927ed1544e528c288e818ba7c99d07db2cb2
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-02-25T22:54:44-08:00
Commit Message:
VOYEUR: Fix read out of bounds in Debugger
Changed paths:
engines/voyeur/debugger.cpp
diff --git a/engines/voyeur/debugger.cpp b/engines/voyeur/debugger.cpp
index 456a59b..04a6597 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");
More information about the Scummvm-git-logs
mailing list