Fix an off-by-one in ScanHModelForDecals
VECTORCH has four elements. Reported by GCC.
This commit is contained in:
parent
ecfbee98c5
commit
df6ea6eef6
1 changed files with 1 additions and 1 deletions
|
@ -1082,7 +1082,7 @@ void ScanHModelForDecals(DISPLAYBLOCK *objectPtr, SECTION_DATA *sectionDataPtr)
|
||||||
decal.ModuleIndex = playerPherModule->m_index;
|
decal.ModuleIndex = playerPherModule->m_index;
|
||||||
decal.UOffset = 0;
|
decal.UOffset = 0;
|
||||||
|
|
||||||
for(i=0; i<5; i++)
|
for(i=0; i<4; i++)
|
||||||
{
|
{
|
||||||
decal.Vertices[i] = sectionDataPtr->Decals[d].Vertices[i];
|
decal.Vertices[i] = sectionDataPtr->Decals[d].Vertices[i];
|
||||||
RotateVector(&(decal.Vertices[i]),&(sectionDataPtr->SecMat));
|
RotateVector(&(decal.Vertices[i]),&(sectionDataPtr->SecMat));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue