diff options
-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; } |