diff options
author | Paul Gilbert | 2019-06-27 18:55:25 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-27 18:55:25 -0700 |
commit | 13e7926849ca4f7968dd81616f6e11f46dcfeb19 (patch) | |
tree | 3ea0f3a4d648a46f87c50edbb73c3bfc4c164ff9 | |
parent | 0a8049e30c97acac5ae5f55a722173dfbc20cd25 (diff) | |
download | scummvm-rg350-13e7926849ca4f7968dd81616f6e11f46dcfeb19.tar.gz scummvm-rg350-13e7926849ca4f7968dd81616f6e11f46dcfeb19.tar.bz2 scummvm-rg350-13e7926849ca4f7968dd81616f6e11f46dcfeb19.zip |
GLK: ALAN2: Fix loading memory for Big Endian
-rw-r--r-- | engines/glk/alan2/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/glk/alan2/main.cpp b/engines/glk/alan2/main.cpp index 551fbe5b59..be6a60c3ac 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++) { |