Fixed an data initialization problem that was causing MSVC grief.
This commit is contained in:
parent
15fadd1687
commit
bd0b5085db
2 changed files with 8 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue