1
0
Fork 0

Oops, fixed a bug introduced in the previous round that munged many

runway textures.
This commit is contained in:
curt 2001-06-12 22:24:52 +00:00
parent 5f71bca303
commit da33ab1cf8
2 changed files with 7 additions and 2 deletions

View file

@ -130,8 +130,14 @@ bool FGMaterialLib::load( const string& mpath ) {
in >> token;
if ( token == '{' ) {
// Read the data into a temporary but stack allocated
// copy of the structure
FGNewMat tmp;
in >> tmp;
// create a pointer to a heap allocated copy of the structure
FGNewMat *m = new FGNewMat;
in >> *m;
*m = tmp;
// build the ssgSimpleState
SGPath tex_path( globals->get_fg_root() );

View file

@ -200,7 +200,6 @@ void FGNewMat::dump_info () {
FGNewMat::~FGNewMat ( void ) {
}
istream&
operator >> ( istream& in, FGNewMat& m )
{