fix skins on non-humanoid models for C client

This commit is contained in:
UnknownShadow200 2018-05-19 00:51:29 +10:00
parent ff5d8780bd
commit 5622523c6b

View file

@ -611,7 +611,7 @@ static void Player_SetSkinAll(Player* player, bool reset) {
String skin = String_FromRawArray(player->SkinNameRaw);
UInt32 i;
for (i = 0; i < ENTITIES_MAX_COUNT; i++) {
if (Entities_List[i] == NULL || Entities_List[i] == entity) continue;
if (Entities_List[i] == NULL) continue;
if (Entities_List[i]->EntityType != ENTITY_TYPE_PLAYER) continue;
Player* p = (Player*)Entities_List[i];