From f2683c541bc6fca0d3ee6126298dd5151e4d1631 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 25 Apr 2002 19:26:18 +0000 Subject: [PATCH] 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. ;-) --- src/ATC/ATCmgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ATC/ATCmgr.cxx b/src/ATC/ATCmgr.cxx index 5d77f1974..4cf79d337 100644 --- a/src/ATC/ATCmgr.cxx +++ b/src/ATC/ATCmgr.cxx @@ -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); -- 2.39.5