Fix another incorrect mapping of texture indices for UE1 models.

This commit is contained in:
Marisa the Magician 2022-07-27 02:41:40 +02:00 committed by Christoph Oelckers
parent 83077b6f95
commit 9eb8d65cb1

View file

@ -309,8 +309,9 @@ void FUE1Model::AddSkins( uint8_t *hitlist, const FTextureID* surfaceskinids)
{
for (int i = 0; i < numGroups; i++)
{
if (surfaceskinids && surfaceskinids[i].isValid())
hitlist[surfaceskinids[i].GetIndex()] |= FTextureManager::HIT_Flat;
int ssIndex = groups[i].texNum;
if (surfaceskinids && surfaceskinids[ssIndex].isValid())
hitlist[surfaceskinids[ssIndex].GetIndex()] |= FTextureManager::HIT_Flat;
}
}