From 89e75ae218c359e949c0336181e0f79eb2137667 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 26 Aug 2006 22:02:16 +0000 Subject: WORKAROUND for bug #1514457: INDY3: Crash in castle Brunwald (german version). svn-id: r23765 --- engines/scumm/string.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp index fa7bd5d6a6..19b51b6147 100644 --- a/engines/scumm/string.cpp +++ b/engines/scumm/string.cpp @@ -844,6 +844,16 @@ int ScummEngine::convertMessageToString(const byte *msg, byte *dst, int dstSize) *dst++ = 0xE1; continue; } + + // WORKAROUND for bug #1514457: Yet another script bug in Indy3. + // Once more a german 'sz' was encoded incorrectly, but this time + // they simply encoded it as 0xFF instead of 0xE1. Happens twice + // in script 71. + if (_game.id == GID_INDY3 && chr == 0x20 && vm.slot[_currentScript].number == 71) { + num--; + *dst++ = 0xE1; + continue; + } if (chr == 1 || chr == 2 || chr == 3 || chr == 8) { // Simply copy these special codes -- cgit v1.2.3