Reselect ATC station if data are updated, and update the ATIS info

This commit is contained in:
Klaus Basan
2019-07-20 18:06:26 +02:00
committed by Mat Sutcliffe
parent b87d0f5f15
commit eb014639fe
3 changed files with 30 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ namespace BlackMisc
bool CAtcStationList::updateIfMessageChanged(const CInformationMessage &im, const CCallsign &callsign, bool overrideWithNewer)
{
const CInformationMessage::InformationType t = im.getType();
const CInformationMessage::InformationType type = im.getType();
// for loop just to get reference
bool unequal = false;
@@ -66,7 +66,7 @@ namespace BlackMisc
{
if (station.getCallsign() != callsign) { continue; }
const CInformationMessage m = station.getInformationMessage(t);
const CInformationMessage m = station.getInformationMessage(type);
if (m.getType() == CInformationMessage::Unspecified) { break; }
if (m.getMessage() == im.getMessage())