diff options
-rw-r--r-- | engines/scumm/scumm.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 1ccf215605..362430d704 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1164,8 +1164,10 @@ Common::Error ScummEngine::init() { } else { Common::List<Graphics::PixelFormat> tryModes = _system->getSupportedFormats(); for (Common::List<Graphics::PixelFormat>::iterator g = tryModes.begin(); g != tryModes.end(); ++g) { - if (g->bytesPerPixel != 2 || g->aBits()) + if (g->bytesPerPixel != 2 || g->aBits()) { g = tryModes.erase(g); + g--; + } if (*g == _outputPixelFormat) { tryModes.clear(); |