mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-05-03 18:31:40 -04:00
#35, fixed taskforce unit delete again.
This commit is contained in:
parent
f9620f7f7f
commit
a73a2e40b4
1 changed files with 6 additions and 4 deletions
|
@ -267,10 +267,12 @@ void CTaskForce::OnDeleteunit()
|
|||
}
|
||||
|
||||
int lastpos = sec->Size() - 3;
|
||||
char l[50];
|
||||
itoa(lastpos, l, 10);
|
||||
sec->SetString(numberStrToDelete, sec->GetString(l));
|
||||
sec->RemoveAt(lastpos);
|
||||
|
||||
CString lastPosStr;
|
||||
lastPosStr.Format("%d", lastpos);
|
||||
|
||||
sec->SetString(numberStrToDelete, sec->GetString(lastPosStr));
|
||||
sec->RemoveByKey(lastPosStr);
|
||||
m_Units.DeleteString(sel);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue