aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorathrxx2011-06-16 21:31:45 +0200
committerathrxx2011-06-16 21:32:33 +0200
commit1a58262ca72fd09748755463299e54749d5c63ae (patch)
tree9afc0419be7ed355ce796f80ae1dcb6200a84d65 /engines/scumm
parent283872018b676113ea429af6cf5ee4c1fe498072 (diff)
downloadscummvm-rg350-1a58262ca72fd09748755463299e54749d5c63ae.tar.gz
scummvm-rg350-1a58262ca72fd09748755463299e54749d5c63ae.tar.bz2
scummvm-rg350-1a58262ca72fd09748755463299e54749d5c63ae.zip
SCUMM: fix bug in cb661d63d0cd45d1231435a593b74dfc51872a0f
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/scumm.cpp4
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();