diff options
-rw-r--r-- | engines/voyeur/graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp index 3a37eb9fb0..e220bbf652 100644 --- a/engines/voyeur/graphics.cpp +++ b/engines/voyeur/graphics.cpp @@ -584,14 +584,14 @@ void GraphicsManager::flipPage() { void GraphicsManager::restoreBack(Common::Array<Common::Rect> &rectList, int rectListCount, PictureResource *srcPic, PictureResource *destPic) { - bool saveBack = _saveBack; - _saveBack = false; - // WORKAROUND: Since _backgroundPage can point to a resource freed at the end of display methods, // I'm now explicitly resetting it to null in screenReset(), so at this point it can be null if (!srcPic) return; + bool saveBack = _saveBack; + _saveBack = false; + if (rectListCount == -1) { sDrawPic(srcPic, destPic, Common::Point()); } else { |