From b0afb5e6cc1803a3c899bb33297169c5004d1d9a Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 30 Apr 2007 05:28:29 +0000 Subject: [PATCH] fix a bug in texture path identification (the nopath case was occurring even when there was a path, because it was checking the wrong variable) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7211 d7cf8633-e32d-0410-b094-e92efae38249 --- image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.c b/image.c index 7f5ed1fc..be151e78 100644 --- a/image.c +++ b/image.c @@ -865,7 +865,7 @@ unsigned char *loadimagepixels (const char *filename, qboolean complain, int mat firstformat = imageformats_textures; else if (!strcasecmp(name, "gfx")) firstformat = imageformats_gfx; - else if (!strchr(name, '/')) + else if (!strchr(basename, '/')) firstformat = imageformats_nopath; else firstformat = imageformats_other; -- 2.39.2