diff options
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r-- | scumm/saveload.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index 5130591437..c369032213 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -286,9 +286,9 @@ bool ScummEngine::loadState(int slot, bool compat) { // Restore the virtual screens and force a fade to black. initScreens(kMainVirtScreen, _screenHeight); - VirtScreen *vs = &virtscr[0]; - memset(vs->screenPtr + vs->xstart, 0, vs->width * vs->height); - vs->setDirtyRange(0, vs->height); + VirtScreen *vs = &virtscr[kMainVirtScreen]; + memset(vs->getPixels(0, 0), 0, vs->pitch * vs->h); + vs->setDirtyRange(0, vs->h); updateDirtyScreen(kMainVirtScreen); updatePalette(); initScreens(sb, sh); |