aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorOliver Kiehl2004-01-12 20:04:22 +0000
committerOliver Kiehl2004-01-12 20:04:22 +0000
commitd7944886451426818ac8d82a644a12596de9de70 (patch)
tree4c39d029a7a607f54717596f34bdb1f7fb85841b /sword2
parenta60c66564b1a1a52f31769f9f24d9a8571468e24 (diff)
downloadscummvm-rg350-d7944886451426818ac8d82a644a12596de9de70.tar.gz
scummvm-rg350-d7944886451426818ac8d82a644a12596de9de70.tar.bz2
scummvm-rg350-d7944886451426818ac8d82a644a12596de9de70.zip
fixed bug that was causing lots of havoc on BE machines. Thanks eriktorbjorn
svn-id: r12348
Diffstat (limited to 'sword2')
-rw-r--r--sword2/resman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sword2/resman.cpp b/sword2/resman.cpp
index ee0162aa98..8c3265cf7f 100644
--- a/sword2/resman.cpp
+++ b/sword2/resman.cpp
@@ -348,7 +348,7 @@ void convertEndian(uint8 *file, uint32 len) {
barData++;
}
- uint16 *node = (uint16 *) (file + sizeof(WalkGridHeader) + walkGridHeader->numBars * sizeof(barData));
+ uint16 *node = (uint16 *) (file + sizeof(WalkGridHeader) + walkGridHeader->numBars * sizeof(BarData));
for (i = 0; i < walkGridHeader->numNodes * 2; i++) {
SWAP16(*node);
node++;