]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
whichpack: distinguish file not found from file is physical.
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index a32d6fab69d27a0e3ee4723710251a19316e6a39..45406637b56dec01d267e33a952a4166ac4fd3f4 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -3723,6 +3723,8 @@ const char *FS_WhichPack(const char *filename)
        searchpath_t *sp = FS_FindFile(filename, &index, true);
        if(sp && sp->pack)
                return sp->pack->shortname;
+       else if(sp)
+               return "";
        else
                return 0;
 }