]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix lightstyle compare (SIGBUS on SPARC)
authorRudolf Polzer <divverent@xonotic.org>
Thu, 8 Dec 2011 13:11:06 +0000 (14:11 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 8 Dec 2011 13:11:06 +0000 (14:11 +0100)
tools/quake3/q3map2/bspfile_rbsp.c

index 79f177ea81d2a5ff8b0f80fd0d70afcd96815a5c..644f1f5f97c8289673e7c04386f3a129cc5ff5ec 100644 (file)
@@ -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 */