From 602550eb6a04b9ebde9f348d771160db3783bf23 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Tue, 10 Dec 2024 19:51:31 -0500 Subject: [PATCH] fixed infantry data duplication after property update --- MissionEditor/IsoView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MissionEditor/IsoView.cpp b/MissionEditor/IsoView.cpp index 2a90b3b..665d868 100644 --- a/MissionEditor/IsoView.cpp +++ b/MissionEditor/IsoView.cpp @@ -2259,7 +2259,7 @@ void CIsoView::HandleProperties(int n, int type) Map->DeleteInfantry(n); - Map->AddInfantry(&data); + Map->AddInfantry(&data, nullptr, nullptr, 0, n); RedrawWindow(NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW); break;