From a75d633c492f19064c4f12dbb7d7c1750676e144 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 8 Dec 2011 14:11:06 +0100 Subject: [PATCH] fix lightstyle compare (SIGBUS on SPARC) --- tools/quake3/q3map2/bspfile_rbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.2