From: Rudolf Polzer Date: Thu, 8 Dec 2011 13:11:06 +0000 (+0100) Subject: fix lightstyle compare (SIGBUS on SPARC) X-Git-Tag: xonotic-v0.6.0~48 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a75d633c492f19064c4f12dbb7d7c1750676e144;p=xonotic%2Fnetradiant.git fix lightstyle compare (SIGBUS on SPARC) --- diff --git a/tools/quake3/q3map2/bspfile_rbsp.c b/tools/quake3/q3map2/bspfile_rbsp.c index 79f177ea..644f1f5f 100644 --- a/tools/quake3/q3map2/bspfile_rbsp.c +++ b/tools/quake3/q3map2/bspfile_rbsp.c @@ -146,7 +146,7 @@ static void AddLightGridLumps( FILE *file, rbspHeader_t *header ) out = &gridPoints[ j ]; /* compare styles */ - if( *((unsigned int*) in->styles) != *((unsigned int*) out->styles) ) + if( memcmp(in->styles, out->styles, MAX_LIGHTMAPS) ) continue; /* compare direction */