[Scummvm-git-logs] scummvm master -> ce4907b71e8882bffd7646c0969684ac733f156f

athrxx noreply at scummvm.org
Fri May 22 14:20:35 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
ce4907b71e SCUMM: (SAM) - fix imuse bug


Commit: ce4907b71e8882bffd7646c0969684ac733f156f
    https://github.com/scummvm/scummvm/commit/ce4907b71e8882bffd7646c0969684ac733f156f
Author: athrxx (athrxx at scummvm.org)
Date: 2026-05-22T16:19:45+02:00

Commit Message:
SCUMM: (SAM) - fix imuse bug

(see PR no. 7523)

Changed paths:
    engines/scumm/imuse/imuse.cpp


diff --git a/engines/scumm/imuse/imuse.cpp b/engines/scumm/imuse/imuse.cpp
index bf07236333d..7ec2d8ada65 100644
--- a/engines/scumm/imuse/imuse.cpp
+++ b/engines/scumm/imuse/imuse.cpp
@@ -902,8 +902,8 @@ int32 IMuseInternal::doCommand_internal(int numargs, int a[]) {
 			if (!player)
 				return -1;
 			if (_newSystem && cmd == 5) {
-				assert(a[3] >= 0 && a[3] <= 15);
-				part = player->getPart(a[2]);
+				if (a[3] >= 0 && a[3] <= 15)
+					part = player->getPart(a[3]);
 				if (!part)
 					return -1;
 			} else if (((1 << cmd) & (1 << 11 | 1 << 22))) {




More information about the Scummvm-git-logs mailing list