]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - wad.c
renamed varray_ arrays to rsurface_array_, and they are no longer used outside the...
[xonotic/darkplaces.git] / wad.c
diff --git a/wad.c b/wad.c
index 13a7b9fdfcd6aa55c17e5d1b7261a7c76b2979ba..7087ce69a909a69ddc4f67a63b75687c54037837 100644 (file)
--- a/wad.c
+++ b/wad.c
@@ -66,7 +66,6 @@ void *W_GetLumpName(const char *name)
        char clean[16];
        wadinfo_t *header;
        int infotableofs;
-       void *temp;
        static int wad_loaded = false;
        static int wad_numlumps = 0;
        static lumpinfo_t *wad_lumps = NULL;
@@ -77,9 +76,9 @@ void *W_GetLumpName(const char *name)
        if (!wad_loaded)
        {
                wad_loaded = true;
-               if ((wad_base = FS_LoadFile ("gfx.wad", cl_mempool, false, &filesize)))
+               if ((wad_base = FS_LoadFile ("gfx.wad", cls.permanentmempool, false, &filesize)))
                {
-                       if (memcmp(temp, "WAD2", 4))
+                       if (memcmp(wad_base, "WAD2", 4))
                        {
                                Con_Print("gfx.wad doesn't have WAD2 id\n");
                                Mem_Free(wad_base);