From: havoc Date: Sun, 3 Aug 2003 13:04:04 +0000 (+0000) Subject: fix skin loading on mdl (and probably md2) models by not setting numskins unless... X-Git-Tag: xonotic-v0.1.0preview~6464 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2acb6740f37a1d589cd0c545bc6b3bb84b114c97;p=xonotic%2Fdarkplaces.git fix skin loading on mdl (and probably md2) models by not setting numskins unless skin file override is happening git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3361 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index d993fe8f..393e7bb3 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1011,7 +1011,8 @@ tag_torso, loadmodel->data_overridetagnamesforskin = Mem_Alloc(loadmodel->mempool, i * sizeof(overridetagnameset_t)); memcpy(loadmodel->data_overridetagnamesforskin, tagsets, i * sizeof(overridetagnameset_t)); } - loadmodel->numskins = i; + if (i) + loadmodel->numskins = i; return first; }