Fix: infantry duplication data issue .

This commit is contained in:
Zero Fanker 2024-12-12 01:04:15 -05:00
parent 718423eef0
commit 473eef415d
4 changed files with 80 additions and 68 deletions

View file

@ -2277,7 +2277,9 @@ void CUserScriptsDlg::OnOK()
if (index >= 0 && index < Map->GetInfantryCount()) {
INFANTRY id;
Map->GetInfantryData(index, &id);
if (id.deleted == 0) deleted = "0";
if (id.deleted == 0) {
deleted = "0";
}
}
variables[params[0]] = deleted;