From d4cd2cda4a1eb2288f2acc600b823c02715d1e12 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 10 Dec 2016 19:50:51 +0000 Subject: [PATCH] Fix bug in loading additional skins after the ones that exist in the model in mdl loader, which resulted in the missing texture being shown because the skin referenced a texture beyond num_textures. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12307 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 1 + 1 file changed, 1 insertion(+) diff --git a/model_alias.c b/model_alias.c index 2eafadf0..100311eb 100644 --- a/model_alias.c +++ b/model_alias.c @@ -1309,6 +1309,7 @@ void Mod_IDP0_Load(dp_model_t *mod, void *buffer, void *bufferend) loadmodel->skinscenes[loadmodel->numskins].loop = true; //increase skin counts + loadmodel->num_textures++; loadmodel->numskins++; totalskins++; -- 2.39.2