From fd7727e9d2a5414e021439eb88d30ca687ac691e Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Sun, 14 Sep 2003 15:07:39 +0000 Subject: Fingolfin, now I am really disappointed with you that you didn't see this bug... ;) svn-id: r10252 --- sword2/resman.cpp | 6 ++++-- 1 file 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; } -- cgit v1.2.3