mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-05 11:11:42 -04:00
fixed #82, script action discontinuous could not using InsertString .
This commit is contained in:
parent
a58d063b22
commit
3bd8d39469
1 changed files with 2 additions and 1 deletions
|
@ -717,7 +717,8 @@ BOOL CScriptTypes::OnInitDialog()
|
|||
int counter = 0;
|
||||
for (auto& ent : m_actionDefinitions) {
|
||||
if (!ent.second.Hide) {
|
||||
m_ActionType.InsertString(counter, ent.second.Name);
|
||||
int data = m_ActionType.AddString(ent.second.Name);
|
||||
m_ActionType.SetItemData(data, counter);
|
||||
}
|
||||
++counter;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue