Missed check for a readProperties file check
Sentry-Id: FLIGHTGEAR-5X
This commit is contained in:
parent
74e27eec16
commit
bedcc81d98
1 changed files with 5 additions and 0 deletions
|
@ -391,6 +391,11 @@ void FGElectricalSystem::init () {
|
||||||
|
|
||||||
if ( path.length() ) {
|
if ( path.length() ) {
|
||||||
SGPath config = globals->resolve_aircraft_path(path);
|
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
|
// load an obsolete xml configuration
|
||||||
SG_LOG( SG_SYSTEMS, SG_DEV_WARN,
|
SG_LOG( SG_SYSTEMS, SG_DEV_WARN,
|
||||||
"Reading deprecated xml electrical system model from\n "
|
"Reading deprecated xml electrical system model from\n "
|
||||||
|
|
Loading…
Reference in a new issue