From 87609ef75a446b97de8c834a5ca395ac6e2f998f Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Sun, 18 Dec 2016 12:47:35 +0100 Subject: [PATCH] ADL: Add workaround for hires5 region 15 --- engines/adl/adl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index e3cd929b6d13..834b53a53c94 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -246,6 +246,10 @@ void AdlEngine::loadWords(Common::ReadStream &stream, WordMap &map, Common::Stri if (synonyms == 0xff) break; + // WORKAROUND: Missing noun list terminator in hires5 region 15 + if (_gameDescription->gameType == GAME_TYPE_HIRES5 && _state.region == 15 && index == 81) + return; + for (uint i = 0; i < synonyms; ++i) { if (stream.read((char *)buf, IDI_WORD_SIZE) < IDI_WORD_SIZE) error("Error reading word list");