mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-01 01:21:41 -04:00
ensure script template always follow definition sequence .
This commit is contained in:
parent
9fe1849e72
commit
0b4fba8382
1 changed files with 3 additions and 2 deletions
|
@ -204,15 +204,16 @@ void CScriptTypes::reloadTemplates()
|
|||
|
||||
// load template into list
|
||||
ASSERT(m_scriptTemplates.size() > 0);
|
||||
auto idx = 0;
|
||||
for (auto const& templ : m_scriptTemplates) {
|
||||
m_Template.AddString(templ.Desc());
|
||||
m_Template.InsertString(idx++, templ.Desc());
|
||||
}
|
||||
m_Template.SetCurSel(0);
|
||||
}
|
||||
|
||||
void CScriptTypes::UpdateDialog()
|
||||
{
|
||||
if (!m_scriptTemplates.size()) {
|
||||
if (m_scriptTemplates.empty()) {
|
||||
reloadTemplates();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue