// Note that at this point, multi-word facility names
// will sometimes contain hyphens, not spaces.
- vector<string> name_words;
+ std::vector<std::string> name_words;
boost::split(name_words, name, boost::is_any_of(" -"));
- for (vector<string>::const_iterator wordp = name_words.begin();
+ for( std::vector<string>::const_iterator wordp = name_words.begin();
wordp != name_words.end(); wordp++) {
string word(*wordp);
// Remap some abbreviations that occur in apt.dat, to
RangeFilter rangeFilter(aircraftPos );
CommStation* sta = CommStation::findByFreq(freqKhz, aircraftPos, &rangeFilter );
SetStation(sta);
- if (sta && sta->airport())
- {
- SG_LOG(SG_ATC, SG_DEBUG, "FGATIS " << _name << ": " << sta->airport()->name());
- }
- else
- {
- SG_LOG(SG_ATC, SG_DEBUG, "FGATIS " << _name << ": no station.");
- }
return true;
}