[Scummvm-git-logs] scummvm master -> 9cf11cab193f82d07429c4a0e85cdbe01ade3aa1
dreammaster
noreply at scummvm.org
Fri May 24 03:38:12 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:
9cf11cab19 M4: Fix endian issue in wscript cruncher
Commit: 9cf11cab193f82d07429c4a0e85cdbe01ade3aa1
https://github.com/scummvm/scummvm/commit/9cf11cab193f82d07429c4a0e85cdbe01ade3aa1
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-05-23T20:38:06-07:00
Commit Message:
M4: Fix endian issue in wscript cruncher
Changed paths:
engines/m4/wscript/ws_cruncher.cpp
diff --git a/engines/m4/wscript/ws_cruncher.cpp b/engines/m4/wscript/ws_cruncher.cpp
index 4d1ed2f56f2..05d65669bb4 100644
--- a/engines/m4/wscript/ws_cruncher.cpp
+++ b/engines/m4/wscript/ws_cruncher.cpp
@@ -521,7 +521,7 @@ int32 ws_PreProcessPcode(uint32 **PC, Anim8 *myAnim8) {
// Check for arg2
myFormat = (opCode & OP_FORMAT2) >> 19;
if (myFormat) {
- word2 = *myPC++;
+ word2 = FROM_LE_32(*myPC++);
myData = (word2 & OP_HIGH_DATA) >> 16;
if (!ExtractArg(myAnim8, myFormat, myData, &_GWS(myArg2), &_GWS(dataArg2))) {
return -1;
More information about the Scummvm-git-logs
mailing list