SCUMM: Prevent darkenPallete() in Room 0 in FT, fixes bug #9871

This commit is contained in:
Ben Castricum 2017-08-15 21:30:44 +02:00 committed by Eugene Sandulenko
parent c33637769e
commit ae8f6397eb

View File

@ -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;