From: Rudolf Polzer Date: Wed, 2 Jan 2013 16:22:17 +0000 (+0100) Subject: mapinfo: fix use of !string X-Git-Tag: xonotic-v0.7.0~141 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=687f9e89a9a87d92635e5a9f94014b6c96797faf;p=xonotic%2Fxonotic-data.pk3dir.git mapinfo: fix use of !string --- diff --git a/qcsrc/common/mapinfo.qc b/qcsrc/common/mapinfo.qc index d29cc5d08..69c3092e2 100644 --- a/qcsrc/common/mapinfo.qc +++ b/qcsrc/common/mapinfo.qc @@ -38,7 +38,7 @@ void MapInfo_Cache_Store() return; s = db_get(_MapInfo_Cache_DB_NameToIndex, MapInfo_Map_bspname); - if(!s) // empty string is NOT valid here! + if(s != "") { i = buf_getsize(_MapInfo_Cache_Buf_IndexToMapData); db_put(_MapInfo_Cache_DB_NameToIndex, MapInfo_Map_bspname, ftos(i));