Note to self: Do test compile, even when it's only adding a simple if/else
statement around two existing pieces of code. :-)
This commit is contained in:
parent
c6f88e5b9b
commit
b15a5508a0
1 changed files with 8 additions and 5 deletions
|
@ -14,7 +14,9 @@
|
|||
//
|
||||
|
||||
#include <simgear/misc/sg_path.hxx>
|
||||
|
||||
#include <Main/globals.hxx>
|
||||
#include <Main/fg_props.hxx>
|
||||
|
||||
#include "xmlloader.hxx"
|
||||
#include "dynamicloader.hxx"
|
||||
|
@ -67,12 +69,13 @@ void XMLLoader::load(FGAirportDynamics* d) {
|
|||
try {
|
||||
readXML(parkpath.str(), visitor);
|
||||
d->init();
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue