Fix incorrect mapping of texture indices for UE1 models.

This commit is contained in:
Marisa the Magician 2022-07-25 10:45:59 +02:00 committed by Christoph Oelckers
parent 351a4c9a5a
commit cd20d707d4

View file

@ -246,8 +246,9 @@ void FUE1Model::RenderFrame( FModelRenderer *renderer, FGameTexture *skin, int f
FGameTexture *sskin = skin;
if ( !sskin )
{
if (surfaceskinids && surfaceskinids[i].isValid())
sskin = TexMan.GetGameTexture(surfaceskinids[i], true);
int ssIndex = groups[i].texNum;
if (surfaceskinids && surfaceskinids[ssIndex].isValid())
sskin = TexMan.GetGameTexture(surfaceskinids[ssIndex], true);
if ( !sskin )
{
vofs += vsize;