From 45b03632d6c2dbd6ff027c65ecef40601377b04e Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 20 May 2009 18:54:39 +0000 Subject: [PATCH] fix one bug in last commit git-svn-id: svn://svn.icculus.org/netradiant/trunk@369 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/q3map2/lightmaps_ydnar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2