aboutsummaryrefslogtreecommitdiff
path: root/gob
diff options
context:
space:
mode:
authorJoost Peters2005-04-06 11:39:22 +0000
committerJoost Peters2005-04-06 11:39:22 +0000
commit5d3dbc0d45143a965cb439fe89774b9f57dfcaa3 (patch)
tree1a5147f1bf6e71027ee3aa18f0ec3794373d600e /gob
parent3554f6676433d7e862e1a2cc4197250321ed217e (diff)
downloadscummvm-rg350-5d3dbc0d45143a965cb439fe89774b9f57dfcaa3.tar.gz
scummvm-rg350-5d3dbc0d45143a965cb439fe89774b9f57dfcaa3.tar.bz2
scummvm-rg350-5d3dbc0d45143a965cb439fe89774b9f57dfcaa3.zip
some endian fixes
svn-id: r17411
Diffstat (limited to 'gob')
-rw-r--r--gob/scenery.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gob/scenery.cpp b/gob/scenery.cpp
index e5cc68f838..735d793887 100644
--- a/gob/scenery.cpp
+++ b/gob/scenery.cpp
@@ -117,9 +117,9 @@ int16 scen_loadStatic(char search) {
ptr->pieces = (Scen_PieceDesc **)malloc(sizeof(Scen_PieceDesc *) * picsCount);
for (i = 0; i < ptr->layersCount; i++) {
- offset = ((int16 *)dataPtr)[i];
+ offset = (int16)READ_LE_UINT16(&((int16 *)dataPtr)[i]);
ptr->layers[i] = (Scen_StaticLayer *)(dataPtr + offset - 2);
- ptr->layers[i]->backResId = *backsPtr;
+ ptr->layers[i]->backResId = (int16)READ_LE_UINT16(backsPtr);
backsPtr++;
}
@@ -419,7 +419,7 @@ int16 scen_loadAnim(char search) {
picsCount);
for (i = 0; i < ptr->layersCount; i++) {
- offset = ((int16 *)dataPtr)[i];
+ offset = (int16)READ_LE_UINT16(&((int16 *)dataPtr)[i]);
ptr->layers[i] = (Scen_AnimLayer *) (dataPtr + offset - 2);
}