diff options
-rw-r--r-- | engines/simon/cursor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/simon/cursor.cpp b/engines/simon/cursor.cpp index 48e6fd8e3b..2dd680a765 100644 --- a/engines/simon/cursor.cpp +++ b/engines/simon/cursor.cpp @@ -505,8 +505,7 @@ void SimonEngine::drawMousePart(byte *dst, int pitch, int image, int offs) { return; } } else { - tmp = _mouseOffs[offs + 1] + _mouseCountY; - if (tmp >= 40) { + if (_mouseOffs[offs + 1] + _mouseCountY >= 40) { tmp = 40 - _mouseCountY; while (tmp--) dst -= pitch; |