From: divverent Date: Wed, 20 May 2009 18:54:39 +0000 (+0000) Subject: fix one bug in last commit X-Git-Tag: svn-r421~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=45b03632d6c2dbd6ff027c65ecef40601377b04e;p=xonotic%2Fnetradiant.git fix one bug in last commit git-svn-id: svn://svn.icculus.org/netradiant/trunk@369 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/lightmaps_ydnar.c b/tools/quake3/q3map2/lightmaps_ydnar.c index 958acca0..e6875c0e 100644 --- a/tools/quake3/q3map2/lightmaps_ydnar.c +++ b/tools/quake3/q3map2/lightmaps_ydnar.c @@ -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;