From 1a58262ca72fd09748755463299e54749d5c63ae Mon Sep 17 00:00:00 2001 From: athrxx Date: Thu, 16 Jun 2011 21:31:45 +0200 Subject: SCUMM: fix bug in cb661d63d0cd45d1231435a593b74dfc51872a0f --- engines/scumm/scumm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/scumm/scumm.cpp') 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 tryModes = _system->getSupportedFormats(); for (Common::List::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(); -- cgit v1.2.3