From ae8f6397ebde77c5469735227d5d303a9d3f170d Mon Sep 17 00:00:00 2001 From: Ben Castricum Date: Tue, 15 Aug 2017 21:30:44 +0200 Subject: SCUMM: Prevent darkenPallete() in Room 0 in FT, fixes bug #9871 --- engines/scumm/script_v6.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/scumm') diff --git a/engines/scumm/script_v6.cpp b/engines/scumm/script_v6.cpp index 62c62c0b4a..5cbbd93265 100644 --- a/engines/scumm/script_v6.cpp +++ b/engines/scumm/script_v6.cpp @@ -1636,6 +1636,9 @@ void ScummEngine_v6::o6_roomOps() { c = pop(); b = pop(); a = pop(); + // Prevent assert() error with corner case, fixes bug #9871 + if (_game.id == GID_FT && _roomResource == 0) + break; darkenPalette(a, a, a, b, c); break; -- cgit v1.2.3