ecere/gfx3D/Object3DSFormat: Fixed mistake breaking Big Endian platforms builds
authorJerome St-Louis <jerome@ecere.com>
Mon, 1 Oct 2012 21:27:23 +0000 (17:27 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 1 Oct 2012 21:27:23 +0000 (17:27 -0400)
ecere/src/gfx/3D/models/Object3DSFormat.ec

index 49e533a..801596e 100644 (file)
@@ -155,7 +155,7 @@ static uint16 ReadWORD(File f)
 {
    uint16 wordValue;
    f.Read(&wordValue, sizeof(uint16), 1);
-   BIGENDSWAP_WORD(floatValue);
+   BIGENDSWAP_WORD(wordValue);
    return wordValue;
 }
 
@@ -163,7 +163,7 @@ static uint ReadDWORD(File f)
 {
    uint dwordValue;
    f.Read(&dwordValue, sizeof(uint), 1);
-   BIGENDSWAP_DWORD(floatValue);
+   BIGENDSWAP_DWORD(dwordValue);
    return dwordValue;
 }