Oops, fixed a bug introduced in the previous round that munged many
runway textures.
This commit is contained in:
parent
5f71bca303
commit
da33ab1cf8
2 changed files with 7 additions and 2 deletions
|
@ -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() );
|
||||
|
|
|
@ -200,7 +200,6 @@ void FGNewMat::dump_info () {
|
|||
FGNewMat::~FGNewMat ( void ) {
|
||||
}
|
||||
|
||||
|
||||
istream&
|
||||
operator >> ( istream& in, FGNewMat& m )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue