Patch from Melchior Franz:
ATCmgr.cxx:148 says: // Returns true if the airport is found in the map Yes, it returns true if the airport has been found. But it fails to return the airport data. Just plays around with a local pointer. ;-)
This commit is contained in:
parent
77cf6c7dc8
commit
f2683c541b
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ void FGATCMgr::RemoveFromList(const char* id, atc_type tp) {
|
|||
// 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);
|
||||
|
|
Loading…
Reference in a new issue