From 3bd3fe6b043145bbdf91bac00e68e7c949472d12 Mon Sep 17 00:00:00 2001 From: AndywinXp Date: Mon, 17 Oct 2022 00:49:38 +0200 Subject: [PATCH] SCUMM: INDY4: Properly fix #1265 --- engines/scumm/script_v5.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp index faaf24177d3..e2cd4245b4a 100644 --- a/engines/scumm/script_v5.cpp +++ b/engines/scumm/script_v5.cpp @@ -767,7 +767,8 @@ void ScummEngine_v5::o5_animateActor() { // animateCostume(31,255), with 86 and 31 being script numbers used as // (way out of range) actor numbers. This seems to be yet another script // bug which the original engine let slip by. - if (_game.id == GID_INDY4 && vm.slot[_currentScript].number == 206 && _currentRoom == 17 && (act == 31 || act == 86)) { + // For more information about why this happens, see o5_getActorRoom(). + if (!isValidActor(act)) { return; }