1
0
Fork 0

Missed check for a readProperties file check

Sentry-Id: FLIGHTGEAR-5X
This commit is contained in:
Automatic Release Builder 2020-11-10 22:25:15 +00:00 committed by James Turner
parent 74e27eec16
commit bedcc81d98

View file

@ -391,6 +391,11 @@ void FGElectricalSystem::init () {
if ( path.length() ) {
SGPath config = globals->resolve_aircraft_path(path);
if (!config.exists()) {
SG_LOG( SG_SYSTEMS, SG_ALERT, "Failed to find electrical system model: " << config );
return;
}
// load an obsolete xml configuration
SG_LOG( SG_SYSTEMS, SG_DEV_WARN,
"Reading deprecated xml electrical system model from\n "