From 2acb6740f37a1d589cd0c545bc6b3bb84b114c97 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 3 Aug 2003 13:04:04 +0000 Subject: [PATCH] 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 --- model_shared.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2