From: divverent Date: Fri, 22 May 2009 06:56:10 +0000 (+0000) Subject: fux segv X-Git-Tag: svn-r421~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=75641556ded3511cdfbac2c573d3d9d57aa5b835;p=xonotic%2Fnetradiant.git fux segv git-svn-id: svn://svn.icculus.org/netradiant/trunk@371 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/lightmaps_ydnar.c b/tools/quake3/q3map2/lightmaps_ydnar.c index eee4f6f8..3c1eed65 100644 --- a/tools/quake3/q3map2/lightmaps_ydnar.c +++ b/tools/quake3/q3map2/lightmaps_ydnar.c @@ -2016,7 +2016,7 @@ static void FindOutLightmaps( rawLightmap_t *lm ) y = 0; /* walk the list of lightmap pages */ - if(lightmapSearchBlockSize <= 0) + if(lightmapSearchBlockSize <= 0 || numOutLightmaps < LIGHTMAP_RESERVE_COUNT) i = 0; else i = ((numOutLightmaps - LIGHTMAP_RESERVE_COUNT) / lightmapSearchBlockSize) * lightmapSearchBlockSize;