From 68880ca5d59e1a525be75392b453eec1cd2d70ab Mon Sep 17 00:00:00 2001 From: quantumstate Date: Mon, 2 Dec 2013 22:46:33 +0000 Subject: [PATCH] Make atlas player assignment apply to all of the currently selected units This was SVN commit r14273. --- .../AtlasUI/ScenarioEditor/Tools/Common/ObjectSettings.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/ObjectSettings.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/ObjectSettings.cpp index 86388b7579..6bd0558192 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/ObjectSettings.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/ObjectSettings.cpp @@ -153,6 +153,9 @@ void ObjectSettings::PostToGame() { if (m_SelectedObjects.empty()) return; - - POST_COMMAND(SetObjectSettings, (m_View, m_SelectedObjects[0], GetSettings())); + + for (std::vector::iterator it = m_SelectedObjects.begin(); it != m_SelectedObjects.end(); it++) + { + POST_COMMAND(SetObjectSettings, (m_View, *it, GetSettings())); + } }