Ref T436, init m_s[0-3] correctly

This commit is contained in:
Klaus Basan
2018-11-18 19:39:40 +01:00
parent 6caba4b1ef
commit 3434abefb0

View File

@@ -124,9 +124,10 @@ namespace BlackMisc
else
{
// we start with the latest situation just to init the values
m_s[0] = m_s[1] = m_s[2] = m_currentSituations.front();
CAircraftSituation f = m_currentSituations.front();
f.setAdjustedMSecsSinceEpoch(m_currentTimeMsSinceEpoch); // adjusted time exactly "now"
m_s[0] = m_s[1] = m_s[2] = f;
}
m_s[1].setAdjustedMSecsSinceEpoch(m_currentTimeMsSinceEpoch); // adjusted time exacty "now"
}
else
{