From 2d12325006c7db4984b2a544ec134387d5432ab0 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 26 Feb 2014 08:10:46 +0100 Subject: VOYEUR: Fix eternal loop bug in sDrawPic() --- engines/voyeur/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/voyeur') 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; -- cgit v1.2.3