diff options
-rw-r--r-- | engines/sword1/screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp index 3d184e15e5..2a7bd60eb7 100644 --- a/engines/sword1/screen.cpp +++ b/engines/sword1/screen.cpp @@ -664,7 +664,7 @@ void Screen::renderParallax(uint8 *data) { uint8 *dest = _screenBuf + scrnScrlX + (cnty + scrnScrlY) * _scrnSizeX/* * 2*/; uint8 pix; for (uint16 idx = 0; (idx < SCREEN_WIDTH) && (idx < paraSizeX); idx++) // make sure we don't write outside screen - if (pix = *(src + idx)) //If data is 0x00, don't write (transparency) + if ((pix = *(src + idx))) //If data is 0x00, don't write (transparency) *(dest + idx) = pix; } else |