Make atlas player assignment apply to all of the currently selected units

This was SVN commit r14273.
This commit is contained in:
Jonathan Waller 2013-12-02 22:46:33 +00:00
parent f09d56fb28
commit 68880ca5d5

View File

@ -153,6 +153,9 @@ void ObjectSettings::PostToGame()
{
if (m_SelectedObjects.empty())
return;
POST_COMMAND(SetObjectSettings, (m_View, m_SelectedObjects[0], GetSettings()));
for (std::vector<AtlasMessage::ObjectID>::iterator it = m_SelectedObjects.begin(); it != m_SelectedObjects.end(); it++)
{
POST_COMMAND(SetObjectSettings, (m_View, *it, GetSettings()));
}
}