From 84014726ba79875d25bc5128d91c28039deffdc2 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 7 Jun 2006 06:20:18 +0000 Subject: [PATCH] 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 --- model_brush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2