diff options
author | Eugene Sandulenko | 2008-08-02 21:57:35 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2008-08-02 21:57:35 +0000 |
commit | e6b1ff04ef60cbc18dc295b693c6367e8905ffc8 (patch) | |
tree | f89241abe73f14e175b1f3869b823886bb859f7f /engines/scumm/gfx.cpp | |
parent | 39449357af4b443d4ee9247ae800db7619d54870 (diff) | |
download | scummvm-rg350-e6b1ff04ef60cbc18dc295b693c6367e8905ffc8.tar.gz scummvm-rg350-e6b1ff04ef60cbc18dc295b693c6367e8905ffc8.tar.bz2 scummvm-rg350-e6b1ff04ef60cbc18dc295b693c6367e8905ffc8.zip |
Fix bug #1879606: "MANIACNES: Crash when game ends"
svn-id: r33546
Diffstat (limited to 'engines/scumm/gfx.cpp')
-rw-r--r-- | engines/scumm/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index 6c8d24d25a..d09accafb0 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -669,7 +669,7 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i x += 16; while (x + width >= _screenWidth) width -= 16; - if (width < 0) + if (width <= 0) return; } |