diff options
author | Max Horn | 2005-04-11 20:03:12 +0000 |
---|---|---|
committer | Max Horn | 2005-04-11 20:03:12 +0000 |
commit | 2ff681b1e9392ec45f85485b79465874c9eb6956 (patch) | |
tree | ff40ad486f6af64a127b861e6c0770edecbcb4bb | |
parent | ddecb306351046bb47dc5c8bfd3f59d802b8ee65 (diff) | |
download | scummvm-rg350-2ff681b1e9392ec45f85485b79465874c9eb6956.tar.gz scummvm-rg350-2ff681b1e9392ec45f85485b79465874c9eb6956.tar.bz2 scummvm-rg350-2ff681b1e9392ec45f85485b79465874c9eb6956.zip |
Endian fixes
svn-id: r17549
-rw-r--r-- | gob/map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gob/map.cpp b/gob/map.cpp index 84d4cdf236..63b6b176e4 100644 --- a/gob/map.cpp +++ b/gob/map.cpp @@ -601,6 +601,7 @@ void map_loadMapObjects(char *avjFile) { } map_loadDataFromAvo((char *)&gob_objCount, 2); + gob_objCount = FROM_LE_16(gob_objCount); for (i = 0; i < gob_objCount; i++) { gob_objects[i] = (Gob_Object *) malloc(sizeof(Gob_Object)); @@ -674,10 +675,11 @@ void map_loadMapObjects(char *avjFile) { gob_objects[10]->unk14 = 1; map_loadDataFromAvo((char *)&state, 2); + state = FROM_LE_16(state); for (i = 0; i < state; i++) { map_avoDataPtr += 30; - map_loadDataFromAvo((char *)&flag, 4); + map_loadDataFromAvo((char *)&flag, 4); // FIXME: Endian conversion needed? map_avoDataPtr += 56; if (flag != 0) |