Fix an off-by-one in ScanHModelForDecals

VECTORCH has four elements. Reported by GCC.
This commit is contained in:
Timotej Lazar 2020-04-21 20:49:56 +02:00
parent ecfbee98c5
commit df6ea6eef6

View file

@ -1082,7 +1082,7 @@ void ScanHModelForDecals(DISPLAYBLOCK *objectPtr, SECTION_DATA *sectionDataPtr)
decal.ModuleIndex = playerPherModule->m_index;
decal.UOffset = 0;
for(i=0; i<5; i++)
for(i=0; i<4; i++)
{
decal.Vertices[i] = sectionDataPtr->Decals[d].Vertices[i];
RotateVector(&(decal.Vertices[i]),&(sectionDataPtr->SecMat));