diff options
| author | Robert Göffringmann | 2003-12-28 23:24:03 +0000 |
|---|---|---|
| committer | Robert Göffringmann | 2003-12-28 23:24:03 +0000 |
| commit | e9766658b666dfe5065ccb5f27549f0719b16cda (patch) | |
| tree | 1083411aca1741dedc6d8269ac267d6c31e73e4f /sword1/mouse.cpp | |
| parent | 2548df9cf8ae51a55a7959ca24741a9f8ceb8414 (diff) | |
| download | scummvm-rg350-e9766658b666dfe5065ccb5f27549f0719b16cda.tar.gz scummvm-rg350-e9766658b666dfe5065ccb5f27549f0719b16cda.tar.bz2 scummvm-rg350-e9766658b666dfe5065ccb5f27549f0719b16cda.zip | |
this fixes the remaining glitches
svn-id: r12004
Diffstat (limited to 'sword1/mouse.cpp')
| -rw-r--r-- | sword1/mouse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sword1/mouse.cpp b/sword1/mouse.cpp index e4a78f151c..a55cc395d7 100644 --- a/sword1/mouse.cpp +++ b/sword1/mouse.cpp @@ -134,7 +134,7 @@ void SwordMouse::engine(uint16 x, uint16 y, uint16 eventFlags) { uint16 clicked = 0; if (y > 40) { for (uint16 priority = 0; (priority < 10) && (!touchedId); priority++) { - for (uint16 cnt = 0; cnt < _numObjs; cnt++) { + for (uint16 cnt = 0; (cnt < _numObjs) && (!touchedId); cnt++) { if ((_objList[cnt].compact->o_priority == priority) && (SwordLogic::_scriptVars[MOUSE_X] >= (uint32)_objList[cnt].compact->o_mouse_x1) && (SwordLogic::_scriptVars[MOUSE_X] <= (uint32)_objList[cnt].compact->o_mouse_x2) && |
