]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix one bug in last commit
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 20 May 2009 18:54:39 +0000 (18:54 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 20 May 2009 18:54:39 +0000 (18:54 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@369 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/lightmaps_ydnar.c

index 958acca02686cd3604d5f79d892877e2c9dfc2ea..e6875c0eb89407c647ec844e9063652091536e76 100644 (file)
@@ -2075,7 +2075,7 @@ static void FindOutLightmaps( rawLightmap_t *lm )
                        olm = safe_malloc( numOutLightmaps * sizeof( outLightmap_t ) );
                        if( outLightmaps != NULL && numOutLightmaps > LIGHTMAP_RESERVE_COUNT )
                        {
-                               memcpy( olm, outLightmaps, (numOutLightmaps - 2) * sizeof( outLightmap_t ) );
+                               memcpy( olm, outLightmaps, (numOutLightmaps - LIGHTMAP_RESERVE_COUNT) * sizeof( outLightmap_t ) );
                                free( outLightmaps );
                        }
                        outLightmaps = olm;