1
0
Fork 0

Issue a warning when finding duplicate tail numbers. Note that this is far from a fatal error, but does interfere with the startup heuristics data collection mechanism.

This commit is contained in:
Durk Talsma 2010-09-03 12:32:55 +02:00
parent 8112ff5842
commit aba57077fd

View file

@ -200,6 +200,11 @@ void FGTrafficManager::init()
data >> h.registration >> h.runCount >> h.hits;
if (data.eof())
break;
HeuristicMapIterator itr = heurMap.find(h.registration);
if (itr != heurMap.end()) {
SG_LOG(SG_GENERAL, SG_WARN,"Traffic Manager Warning: found duplicate tailnumber " <<
h.registration << " for AI aircraft");
}
heurMap[h.registration] = h;
heuristics.push_back(h);
}