Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp

    r955b91 rf10b0c  
    2828#include "World.hpp"
    2929
    30 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(std::string title, std::string _description) :
    31     Dialog::ElementsQuery(title, _description)
     30CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &param, std::string title, std::string _description) :
     31    Dialog::ElementsQuery(param, title, _description)
    3232{}
    3333
     
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4141    vector<int> AllElements = CommandLineParser::getInstance().vm[getTitle()].as< vector<int> >();
     42    vector<const element *> temp_elements;
    4243    for (vector<int>::iterator ZRunner = AllElements.begin(); ZRunner != AllElements.end(); ++ZRunner) {
    4344      temp = periode->FindElement(*ZRunner);
    4445      ASSERT(temp != NULL, "Invalid element specified in ElementCommandLineQuery");
    45       tmp.push_back(temp);
     46      temp_elements.push_back(temp);
    4647    }
     48    tmp.set(temp_elements);
    4749    return true;
    4850  } else {
Note: See TracChangeset for help on using the changeset viewer.