EgtMachKernel :

- correzione a RemoveLastPhase per casi "strani".
This commit is contained in:
Dario Sassi
2019-07-10 17:27:55 +00:00
parent 30476aa412
commit c2d2db28cd
+2 -1
View File
@@ -236,7 +236,8 @@ MachMgr::RemoveLastPhase( void)
// se era corrente, rendo corrente la precedente
if ( m_nCurrPhase == m_nPhasesCount)
SetCurrPhase( m_nCurrPhase - 1) ;
-- m_nPhasesCount ;
// ricalcolo il numero delle fasi (per maggior robustezza)
m_nPhasesCount = CalcPhaseCount() ;
return true ;
}