diff options
author | Oliver Kiehl | 2003-09-14 15:07:39 +0000 |
---|---|---|
committer | Oliver Kiehl | 2003-09-14 15:07:39 +0000 |
commit | fd7727e9d2a5414e021439eb88d30ca687ac691e (patch) | |
tree | 3ccefbd176e8b42687d556ee9dc3e3c880516527 | |
parent | c902282a0569619d1091c9a603428a9dfe54375c (diff) | |
download | scummvm-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.cpp | 6 |
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; } |