]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
mapinfo: fix use of !string
authorRudolf Polzer <divverent@xonotic.org>
Wed, 2 Jan 2013 16:22:17 +0000 (17:22 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 2 Jan 2013 16:22:17 +0000 (17:22 +0100)
qcsrc/common/mapinfo.qc

index d29cc5d08897de3f792ae05919fd8863e0939f7e..69c3092e2ed216d79396eb2fcd8e9974c01b7a7c 100644 (file)
@@ -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));