1
0
Fork 0

Cameron Moore:

polygon.cxx.diff
- Fixed an incorrect delete[] call that could fail on a non-Linux
  platform during genapts

split-bin.cxx.diff
- Fixed uninitialized z() values that were being printed during tgvpf
This commit is contained in:
curt 2002-06-15 13:31:51 +00:00
parent 6e5f833cc3
commit 3ace596df0
2 changed files with 4 additions and 1 deletions

View file

@ -252,7 +252,7 @@ void make_gpc_poly( const FGPolygon& in, gpc_polygon *out ) {
}
// free alocated memory
delete v_list.vertex;
delete [] v_list.vertex;
}

View file

@ -68,6 +68,9 @@ static void clip_and_write_poly( string root, long int p_index, AreaType area,
"Out of range latitude in clip_and_write_poly() = " << c.y() );
}
min.setz( 0.0 );
max.setz( 0.0 );
SG_LOG( SG_GENERAL, SG_DEBUG, " (" << min << ") (" << max << ")" );
// set up clipping tile