aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorEugene Sandulenko2006-01-06 13:56:46 +0000
committerEugene Sandulenko2006-01-06 13:56:46 +0000
commit6a8f6142c8b9e35637c556132bf09f7dfdc42165 (patch)
treef2e7a684a995cefcaa53f98a29a5b396025c1e2d /scumm
parent1ab01a6fb76fcf6ab960229ecb65ecfe15c7159d (diff)
downloadscummvm-rg350-6a8f6142c8b9e35637c556132bf09f7dfdc42165.tar.gz
scummvm-rg350-6a8f6142c8b9e35637c556132bf09f7dfdc42165.tar.bz2
scummvm-rg350-6a8f6142c8b9e35637c556132bf09f7dfdc42165.zip
Partial fix for MM NES crash. Thanks to Quietust
svn-id: r19931
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index cd198d24e2..81354fcf35 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -575,7 +575,7 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i
// other games we shift it right on rendering stage
if ((_platform == Common::kPlatformNES) && (((_NESStartStrip > 0) && (vs->number == kMainVirtScreen)) || (vs->number == kTextVirtScreen))) {
x += 16;
- if (x + width >= _screenWidth)
+ while (x + width >= _screenWidth)
width -= 16;
}