[Scummvm-git-logs] scummvm master -> 13e7926849ca4f7968dd81616f6e11f46dcfeb19

dreammaster paulfgilbert at gmail.com
Fri Jun 28 03:55:36 CEST 2019


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:
13e7926849 GLK: ALAN2: Fix loading memory for Big Endian


Commit: 13e7926849ca4f7968dd81616f6e11f46dcfeb19
    https://github.com/scummvm/scummvm/commit/13e7926849ca4f7968dd81616f6e11f46dcfeb19
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-06-27T18:55:25-07:00

Commit Message:
GLK: ALAN2: Fix loading memory for Big Endian

Changed paths:
    engines/glk/alan2/main.cpp


diff --git a/engines/glk/alan2/main.cpp b/engines/glk/alan2/main.cpp
index 551fbe5..be6a60c 100644
--- a/engines/glk/alan2/main.cpp
+++ b/engines/glk/alan2/main.cpp
@@ -1113,9 +1113,7 @@ static void load() {
 		::error("Header size is greater than filesize");
 
 	codfil->seek(0);
-	codfil->read(&header->vers[0], 4);
-	for (i = 1, ptr = memory + 1; i < tmphdr.size; ++i, ++ptr)
-		*ptr = codfil->readUint32LE();
+	codfil->read(&header->vers[0], sizeof(Aword) * tmphdr.size);
 
 	/* Calculate checksum */
 	for (i = sizeof(tmphdr) / sizeof(Aword); i < memTop; i++) {





More information about the Scummvm-git-logs mailing list