[Scummvm-git-logs] scummvm master -> 484ccdacd1fa1ca560fb5c6650d28bca4fc67c85

dwatteau noreply at scummvm.org
Thu Aug 14 23:39:14 UTC 2025


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:
484ccdacd1 AGI: PREAGI: Fix MICKEY sound on big-endian archs


Commit: 484ccdacd1fa1ca560fb5c6650d28bca4fc67c85
    https://github.com/scummvm/scummvm/commit/484ccdacd1fa1ca560fb5c6650d28bca4fc67c85
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2025-08-15T01:35:38+02:00

Commit Message:
AGI: PREAGI: Fix MICKEY sound on big-endian archs

Reported by user munnlete on the forums, thanks!

Changed paths:
    engines/agi/preagi/mickey.cpp


diff --git a/engines/agi/preagi/mickey.cpp b/engines/agi/preagi/mickey.cpp
index 93b91fe935f..8a957101a18 100644
--- a/engines/agi/preagi/mickey.cpp
+++ b/engines/agi/preagi/mickey.cpp
@@ -670,7 +670,8 @@ bool MickeyEngine::playSound(ENUM_MSA_SOUND iSound, WaitOptions options) {
 		readOfsData(IDOFS_MSA_SOUND_DATA, iSound, buffer, 1024);
 
 		for (;;) {
-			memcpy(&note, buffer + pBuf, sizeof(note));
+			note.counter = READ_LE_UINT16(&buffer[pBuf]);
+			note.length = buffer[pBuf + 2];
 			if (!note.counter && !note.length)
 				break;
 




More information about the Scummvm-git-logs mailing list