aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiehl2003-09-14 15:07:39 +0000
committerOliver Kiehl2003-09-14 15:07:39 +0000
commitfd7727e9d2a5414e021439eb88d30ca687ac691e (patch)
tree3ccefbd176e8b42687d556ee9dc3e3c880516527
parentc902282a0569619d1091c9a603428a9dfe54375c (diff)
downloadscummvm-rg350-fd7727e9d2a5414e021439eb88d30ca687ac691e.tar.gz
scummvm-rg350-fd7727e9d2a5414e021439eb88d30ca687ac691e.tar.bz2
scummvm-rg350-fd7727e9d2a5414e021439eb88d30ca687ac691e.zip
Fingolfin, now I am really disappointed with you that you didn't see this bug... ;)
svn-id: r10252
-rw-r--r--sword2/resman.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sword2/resman.cpp b/sword2/resman.cpp
index 01d764435d..a886f6c5be 100644
--- a/sword2/resman.cpp
+++ b/sword2/resman.cpp
@@ -408,8 +408,10 @@ static void convertEndian(uint8 *file, uint32 len) {
}
uint16 *node = (uint16 *) (file + sizeof(_walkGridHeader) + walkGridHeader->numBars * sizeof(_barData));
- for (i = 0; i < walkGridHeader->numNodes*2; i++)
- *node = SWAP_BYTES_16(*node++);
+ for (i = 0; i < walkGridHeader->numNodes*2; i++) {
+ SWAP16(*node);
+ node++;
+ }
break;
}