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

dreammaster noreply at scummvm.org
Tue Feb 6 03:04:59 UTC 2024


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

Summary:
d36ec09657 M4: Fix define for cels byte swapping code


Commit: d36ec09657557706c1e265312ec39d2b79d75996
    https://github.com/scummvm/scummvm/commit/d36ec09657557706c1e265312ec39d2b79d75996
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-02-05T19:04:49-08:00

Commit Message:
M4: Fix define for cels byte swapping code

Changed paths:
    engines/m4/wscript/ws_load.cpp


diff --git a/engines/m4/wscript/ws_load.cpp b/engines/m4/wscript/ws_load.cpp
index ec8f58fc13a..e51941a8c52 100644
--- a/engines/m4/wscript/ws_load.cpp
+++ b/engines/m4/wscript/ws_load.cpp
@@ -420,7 +420,7 @@ bool LoadWSAssets(const char *wsAssetName, RGB8 *myPalette) {
 			// Fall through
 
 		case CHUNK_CELS: {
-#if defined(SCUMM_LITTLE_ENDIAN)
+#if defined(SCUMM_BIG_ENDIAN)
 			uint32 *index = (uint32 *)mainAssetPtr;
 			uint count = CELS_OFFSETS + READ_LE_UINT32(index + CELS_COUNT);
 			for (i = 0; i < count; ++i, ++index)




More information about the Scummvm-git-logs mailing list