fix one bug in last commit

git-svn-id: svn://svn.icculus.org/netradiant/trunk@369 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
divverent 2009-05-20 18:54:39 +00:00
parent b81233b07d
commit 45b03632d6

View File

@ -2075,7 +2075,7 @@ static void FindOutLightmaps( rawLightmap_t *lm )
olm = safe_malloc( numOutLightmaps * sizeof( outLightmap_t ) ); olm = safe_malloc( numOutLightmaps * sizeof( outLightmap_t ) );
if( outLightmaps != NULL && numOutLightmaps > LIGHTMAP_RESERVE_COUNT ) 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 ); free( outLightmaps );
} }
outLightmaps = olm; outLightmaps = olm;