Fix memory access beyond vector bounds. Reported by valgrind
This commit is contained in:
parent
a74edcd91b
commit
a61df8aec0
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ double tgContour::GetMinimumAngle( void ) const
|
|||
|
||||
p2_index = i;
|
||||
|
||||
if ( i == size ) {
|
||||
if ( i == size - 1 ) {
|
||||
p3_index = 0;
|
||||
} else {
|
||||
p3_index = i + 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue