From 75641556ded3511cdfbac2c573d3d9d57aa5b835 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 22 May 2009 06:56:10 +0000 Subject: [PATCH] fux segv git-svn-id: svn://svn.icculus.org/netradiant/trunk@371 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 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; -- 2.39.2