airport_atc_map[(string)"KEMT"] = a;
}
-void FGATCMgr::update(int dt) {
+void FGATCMgr::update(double dt) {
//Traverse the list of active stations.
//Only update one class per update step to avoid the whole ATC system having to calculate between frames.
//Eventually we should only update every so many steps.
// Returns true if the airport is found in the map
bool FGATCMgr::GetAirportATCDetails(string icao, AirportATC* a) {
if(airport_atc_map.find(icao) != airport_atc_map.end()) {
- a = airport_atc_map[icao];
+ *a = *airport_atc_map[icao];
return(true);
} else {
return(false);
}
cout << "ERROR IN FGATCMgr - reached end of GetATCPointer\n";
+
+ return NULL;
}