#include <simgear/props/props_io.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/sg_inlines.h>
+#include <simgear/structure/exception.hxx>
#include <Environment/environment_mgr.hxx>
#include <Environment/environment.hxx>
_dynamics(0),
mTowerDataLoaded(false),
mRunwaysLoaded(false),
- mTaxiwaysLoaded(true)
+ mTaxiwaysLoaded(false)
{
}
_dynamics = new FGAirportDynamics(this);
XMLLoader::load(_dynamics);
-
+ _dynamics->init();
+
FGRunwayPreference rwyPrefs(this);
XMLLoader::load(&rwyPrefs);
_dynamics->setRwyUse(rwyPrefs);
- XMLLoader::load(_dynamics->getSIDs());
return _dynamics;
}
FGTaxiway* FGAirport::getTaxiwayByIndex(unsigned int aIndex) const
{
loadTaxiways();
+
assert(aIndex >= 0 && aIndex < mTaxiways.size());
return (FGTaxiway*) flightgear::NavDataCache::instance()->loadById(mTaxiways[aIndex]);
}