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:
parent
b81233b07d
commit
45b03632d6
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user