fixed #82, script action discontinuous could not using InsertString .

This commit is contained in:
Zero Fanker 2024-07-04 19:31:28 -04:00
parent a58d063b22
commit 3bd8d39469

View file

@ -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;
}