aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base/scriptables/ScEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Base/scriptables/ScEngine.cpp')
-rw-r--r--engines/wintermute/Base/scriptables/ScEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/scriptables/ScEngine.cpp b/engines/wintermute/Base/scriptables/ScEngine.cpp
index 85451bb150..30bda66558 100644
--- a/engines/wintermute/Base/scriptables/ScEngine.cpp
+++ b/engines/wintermute/Base/scriptables/ScEngine.cpp
@@ -684,7 +684,7 @@ HRESULT CScEngine::AddBreakpoint(const char *ScriptFilename, int Line) {
Bp = new CScBreakpoint(ScriptFilename);
_breakpoints.Add(Bp);
}
- bool Found = false;
+
for (int i = 0; i < Bp->_lines.GetSize(); i++) {
if (Bp->_lines[i] == Line) return S_OK;
}