1
0
Fork 0

Fixed an data initialization problem that was causing MSVC grief.

This commit is contained in:
curt 2001-06-12 18:45:23 +00:00
parent 15fadd1687
commit bd0b5085db
2 changed files with 8 additions and 0 deletions

View file

@ -39,6 +39,7 @@ FGViewer::FGViewer( void ):
view_offset(0.0),
goal_view_offset(0.0)
{
sgSetVec3( pilot_offset, 0.0, 0.0, 0.0 );
}

View file

@ -267,6 +267,13 @@ FGNewMat *FGMaterialLib::find( const string& material ) {
// Destructor
FGMaterialLib::~FGMaterialLib ( void ) {
// Free up all the material entries first
for ( material_map_iterator it = begin(); it != end(); it++ ) {
FGNewMat *slot = it->second;
if ( slot != NULL ) {
delete slot;
}
}
}