From 70e1b8d1d2959d5a9b17fc1bde6688e60c8a9895 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 6 Mar 2013 16:56:28 +0000 Subject: fix for error building on big-endian. --- source/blender/modifiers/intern/MOD_meshcache_pc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/modifiers/intern/MOD_meshcache_pc2.c') diff --git a/source/blender/modifiers/intern/MOD_meshcache_pc2.c b/source/blender/modifiers/intern/MOD_meshcache_pc2.c index 1ecb347d174..b20f62a8e77 100644 --- a/source/blender/modifiers/intern/MOD_meshcache_pc2.c +++ b/source/blender/modifiers/intern/MOD_meshcache_pc2.c @@ -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) { -- cgit v1.2.3