1
0
Fork 0

Merge commit 'refs/merge-requests/1553' of git://gitorious.org/fg/flightgear into merge-requests/1553

This commit is contained in:
ThorstenB 2011-09-30 22:43:42 +02:00
commit 3c6b7e0836

View file

@ -478,6 +478,9 @@ private:
int freqKhz = atoi(token[1].c_str());
int rangeNm = 50;
FGPositioned::Type ty;
// Make sure we only pass on stations with at least a name
if (token.size() >2){
switch (lineId) {
case 50:
ty = FGPositioned::FREQ_AWOS;
@ -498,6 +501,8 @@ private:
commStations.push_back(new flightgear::CommStation(token[2], ty, pos, rangeNm, freqKhz));
}
else SG_LOG( SG_GENERAL, SG_DEBUG, "Found unnamed comm. Skipping: " << lineId);
}
};