diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-21 20:49:56 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-23 18:45:33 +0200 |
| commit | df6ea6eef6153f565a8427a770eb04d0d3aeb8ab (patch) | |
| tree | 10710db1f2d14de637bfcf7cdbab7a1337045c1f | |
| parent | ecfbee98c5743a6f4926ec51c3fdbdf478966acb (diff) | |
Fix an off-by-one in ScanHModelForDecals
VECTORCH has four elements. Reported by GCC.
| -rw-r--r-- | src/avp/decal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/avp/decal.c b/src/avp/decal.c index b8a3fac..bc15c54 100644 --- a/src/avp/decal.c +++ b/src/avp/decal.c @@ -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)); |
