diff --git a/MissionEditor/CellTag.cpp b/MissionEditor/CellTag.cpp index c310168..ba036cc 100644 --- a/MissionEditor/CellTag.cpp +++ b/MissionEditor/CellTag.cpp @@ -74,7 +74,7 @@ BOOL CCellTag::OnInitDialog() CComboBox& m_Tag=*((CComboBox*)GetDlgItem(IDC_TAG)); - if(ini.sections.find("Tags")==ini.sections.end()) + if(!ini.TryGetSection("Tags")) { MessageBox("No tags are specified."); OnCancel(); @@ -82,7 +82,9 @@ BOOL CCellTag::OnInitDialog() else { ListTags(m_Tag, FALSE); - if(m_tag=="") m_Tag.SetCurSel(0); + if (m_tag == "") { + m_Tag.SetCurSel(0); + } } UpdateStrings();