aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2014-02-26 08:10:46 +0100
committerStrangerke2014-02-26 08:10:46 +0100
commit2d12325006c7db4984b2a544ec134387d5432ab0 (patch)
treeabd454a2341a8f2cda0f67ccca9e882b434587d3 /engines/voyeur
parent63bf41f4175b4fa3e0f87a1b0937ad89e3f490bf (diff)
downloadscummvm-rg350-2d12325006c7db4984b2a544ec134387d5432ab0.tar.gz
scummvm-rg350-2d12325006c7db4984b2a544ec134387d5432ab0.tar.bz2
scummvm-rg350-2d12325006c7db4984b2a544ec134387d5432ab0.zip
VOYEUR: Fix eternal loop bug in sDrawPic()
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 7f944ef8ab..5bf314ecf5 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -295,7 +295,7 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des
srcP = (byte *)_screenSurface.getPixels() + srcOffset;
for (int yp = 0; yp < height1; ++yp) {
- for (int xp = 0; xp < width2; ++width2, ++srcP, ++destP) {
+ for (int xp = 0; xp < width2; ++xp, ++srcP, ++destP) {
pixel = *srcP;
if (pixel)
*destP = pixel;