diff options
author | Max Horn | 2004-09-27 21:07:27 +0000 |
---|---|---|
committer | Max Horn | 2004-09-27 21:07:27 +0000 |
commit | 9eede9a4ac949afb99fda1a08e9dab996d407452 (patch) | |
tree | d35652d90ed852a60d93dd319583ec01b1312c09 | |
parent | 93f86eda94cc4820917dcee35aedd8d69a519b5e (diff) | |
download | scummvm-rg350-9eede9a4ac949afb99fda1a08e9dab996d407452.tar.gz scummvm-rg350-9eede9a4ac949afb99fda1a08e9dab996d407452.tar.bz2 scummvm-rg350-9eede9a4ac949afb99fda1a08e9dab996d407452.zip |
Looking at my code transformations again, numstrip could in theory become negative, so strengthen the loop condition to catch that case
svn-id: r15310
-rw-r--r-- | scumm/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 86de551613..dc6a302f47 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1218,7 +1218,7 @@ void Gdi::drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int wi } // FIXME Still not been calculated correctly - while (numstrip && sx < _numStrips && x * 8 < MAX(_vm->_roomWidth, (int) vs->w)) { + while (numstrip > 0 && sx < _numStrips && x * 8 < MAX(_vm->_roomWidth, (int) vs->w)) { CHECK_HEAP; if (y < vs->tdirty[sx]) |