[Scummvm-cvs-logs] scummvm master -> 08b1002eb576090852e187d1de6f81383a29dab9
Strangerke
Strangerke at scummvm.org
Sat Apr 20 23:42:26 CEST 2013
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:
08b1002eb5 HOPKINS: Fix check on index in LinesManager. CID 1004010
Commit: 08b1002eb576090852e187d1de6f81383a29dab9
https://github.com/scummvm/scummvm/commit/08b1002eb576090852e187d1de6f81383a29dab9
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-04-20T14:41:23-07:00
Commit Message:
HOPKINS: Fix check on index in LinesManager. CID 1004010
Changed paths:
engines/hopkins/lines.cpp
diff --git a/engines/hopkins/lines.cpp b/engines/hopkins/lines.cpp
index 6603708..d0ca736 100644
--- a/engines/hopkins/lines.cpp
+++ b/engines/hopkins/lines.cpp
@@ -2790,8 +2790,7 @@ void LinesManager::resetLines() {
// Remove Line
void LinesManager::removeLine(int idx) {
- if (idx > MAX_LINES)
- error("Attempting to add a line obstacle > MAX_LIGNE.");
+ assert (idx <= MAX_LINES);
_lineItem[idx]._lineData = (int16 *)_vm->_globals->freeMemory((byte *)_lineItem[idx]._lineData);
}
More information about the Scummvm-git-logs
mailing list