From 0c08ad12e6f59e5523c5f68dc2287922559649af Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 15 May 2025 21:23:07 +1000 Subject: [PATCH] Fix non power of two skins not rendering properly with humanoid models --- src/Model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model.c b/src/Model.c index 905d46c75..3c8a2532d 100644 --- a/src/Model.c +++ b/src/Model.c @@ -941,8 +941,8 @@ static void HumanModel_DrawCore(struct Entity* e, struct ModelSet* model, cc_boo int type, num; Model_ApplyTexture(e); - type = Models.skinType; - set = &model->limbs[type & 0x3]; + type = Models.skinType & 0x3; + set = &model->limbs[type]; num = HUMAN_BASE_VERTICES + (type == SKIN_64x32 ? HUMAN_HAT32_VERTICES : HUMAN_HAT64_VERTICES); Model_LockVB(e, num);