]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix maps/ check to use 5 characters, not 4
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Jun 2006 06:20:18 +0000 (06:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 Jun 2006 06:20:18 +0000 (06:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6429 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 53a1f7cdecad9abfd572fcdccc1545de3659bca4..3cda0c0b8a4f5afd837d8279b998501ec7de7fae 100644 (file)
@@ -1280,8 +1280,8 @@ static void Mod_Q1BSP_LoadTextures(lump_t *l)
                return;
 
        s = loadmodel->name;
-       if (!strncasecmp(s, "maps/", 4))
-               s += 4;
+       if (!strncasecmp(s, "maps/", 5))
+               s += 5;
        FS_StripExtension(s, mapname, sizeof(mapname));
 
        // just to work around bounds checking when debugging with it (array index out of bounds error thing)