fix for error building on big-endian.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 6 Mar 2013 16:56:28 +0000 (16:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 6 Mar 2013 16:56:28 +0000 (16:56 +0000)
source/blender/modifiers/intern/MOD_meshcache_pc2.c

index 1ecb347d1740384c5d2b4f64c9487c4c473c4aa0..b20f62a8e77b7195476ec969a771557c98cdaf44 100644 (file)
@@ -62,7 +62,7 @@ static bool meshcache_read_pc2_head(FILE *fp, const int verts_tot,
        }
 
 #ifdef __BIG_ENDIAN__
-       BLI_endian_switch_int32_array(&pc2_head->huh, (sizeof(*pc2_head) - sizeof(pc2_head->header)) / sizeof(int));
+       BLI_endian_switch_int32_array(&pc2_head->file_version, (sizeof(*pc2_head) - sizeof(pc2_head->header)) / sizeof(int));
 #endif
 
        if (pc2_head->verts_tot != verts_tot) {