From: havoc Date: Sat, 10 Dec 2016 19:50:51 +0000 (+0000) Subject: Fix bug in loading additional skins after the ones that exist in the model in mdl... X-Git-Tag: xonotic-v0.8.5~88^2~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d4cd2cda4a1eb2288f2acc600b823c02715d1e12;p=xonotic%2Fdarkplaces.git 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 --- 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++;