From a38eb5b70d5ffe47a81de9ef9462f89b264795db Mon Sep 17 00:00:00 2001 From: div0 Date: Thu, 15 Nov 2007 10:39:22 +0000 Subject: [PATCH] Don Strunzone caught me. Forgot to strzone the filter list. git-svn-id: svn://svn.icculus.org/nexuiz/trunk@2952 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/common/mapinfo.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/qcsrc/common/mapinfo.qc b/data/qcsrc/common/mapinfo.qc index c05b73414..bae74b893 100644 --- a/data/qcsrc/common/mapinfo.qc +++ b/data/qcsrc/common/mapinfo.qc @@ -83,12 +83,15 @@ string MapInfo_FilterGametype_Recursive(float pGametype, float pBegin, float pEn } float MapInfo_FilterGametype(float gametype) { + if(_MapInfo_filtered) + strunzone(_MapInfo_filtered); _MapInfo_filtered = MapInfo_FilterGametype_Recursive(gametype, 0, _MapInfo_globcount); if(!_MapInfo_filtered) { dprint("Autogenerated a .mapinfo, bailing out to avoid loop counter\n"); return 0; } + _MapInfo_filtered = strzone(_MapInfo_filtered); MapInfo_count = HugeSetOfIntegers_length(_MapInfo_filtered); dprint("Filter ", ftos(gametype), " results in ", _MapInfo_filtered, "\n"); return 1; -- 2.39.2