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:
parent
8112ff5842
commit
aba57077fd
1 changed files with 5 additions and 0 deletions
|
@ -200,6 +200,11 @@ void FGTrafficManager::init()
|
||||||
data >> h.registration >> h.runCount >> h.hits;
|
data >> h.registration >> h.runCount >> h.hits;
|
||||||
if (data.eof())
|
if (data.eof())
|
||||||
break;
|
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;
|
heurMap[h.registration] = h;
|
||||||
heuristics.push_back(h);
|
heuristics.push_back(h);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue