From: havoc Date: Wed, 7 Jun 2006 06:20:18 +0000 (+0000) Subject: fix maps/ check to use 5 characters, not 4 X-Git-Tag: xonotic-v0.1.0preview~3947 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=84014726ba79875d25bc5128d91c28039deffdc2;p=xonotic%2Fdarkplaces.git fix maps/ check to use 5 characters, not 4 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6429 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 53a1f7cd..3cda0c0b 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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)