[Scummvm-git-logs] scummvm master -> 82c081ed5059efbf3a2d9768facd48bb61b806a3

dreammaster noreply at scummvm.org
Mon May 18 03:14:20 UTC 2026


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

Summary:
6ad71b2244 MADS: PHANTOM: Correct the size of anim speech data to load
82c081ed50 MADS: PHANTOM: Workaround empty sprite in intro chandelier cutscene


Commit: 6ad71b2244388ad8840cedeb2f8bb2b996622ddc
    https://github.com/scummvm/scummvm/commit/6ad71b2244388ad8840cedeb2f8bb2b996622ddc
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-05-18T13:14:09+10:00

Commit Message:
MADS: PHANTOM: Correct the size of anim speech data to load

Changed paths:
    engines/mads/madsv2/core/anim.cpp


diff --git a/engines/mads/madsv2/core/anim.cpp b/engines/mads/madsv2/core/anim.cpp
index dbf4268eeed..6463112d948 100644
--- a/engines/mads/madsv2/core/anim.cpp
+++ b/engines/mads/madsv2/core/anim.cpp
@@ -329,7 +329,7 @@ AnimPtr anim_load(const char *file_name, Buffer *orig, Buffer *depth,
 
 		size_t size = Speech::SIZE * anim_in.num_speech;
 		byte *buffer = (byte *)malloc(size);
-		if (!loader_read(buffer, speech_size, 1, &load_handle)) {
+		if (!loader_read(buffer, size, 1, &load_handle)) {
 			free(buffer);
 			goto done;
 		}


Commit: 82c081ed5059efbf3a2d9768facd48bb61b806a3
    https://github.com/scummvm/scummvm/commit/82c081ed5059efbf3a2d9768facd48bb61b806a3
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-05-18T13:14:09+10:00

Commit Message:
MADS: PHANTOM: Workaround empty sprite in intro chandelier cutscene

Changed paths:
    engines/mads/madsv2/core/sprite_0.cpp


diff --git a/engines/mads/madsv2/core/sprite_0.cpp b/engines/mads/madsv2/core/sprite_0.cpp
index 953394611f4..85267f2dd63 100644
--- a/engines/mads/madsv2/core/sprite_0.cpp
+++ b/engines/mads/madsv2/core/sprite_0.cpp
@@ -163,6 +163,11 @@ if (id < 0) {
 sprite = &series->index[id - 1];
 sprite_ptr = sprite->data;
 
+// WORKAROUND: Ignore sprites with no data. This fixes a crash in the Phantom
+// intro chandelier cutscene (7th animation)
+if (!sprite_ptr)
+	return;
+
 /* Load up buffer pointer info */
 target_ptr = buf->data;
 target_wrap = buf->x;




More information about the Scummvm-git-logs mailing list