Ignore:
File:
1 edited

Legend:

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

    r955b91 rf10b0c  
    2828#include "World.hpp"
    2929
    30 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(std::string title, std::string _description) :
    31     Dialog::ElementQuery(title, _description)
     30CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &param, std::string title, std::string _description) :
     31    Dialog::ElementQuery(param, title, _description)
    3232{}
    3333
     
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4141    int Z = CommandLineParser::getInstance().vm[getTitle()].as< int >();
    42     tmp = periode->FindElement(Z);
    43     ASSERT(tmp != NULL, "Invalid element specified in ElementCommandLineQuery");
     42    tmp.set(periode->FindElement(Z));
     43    ASSERT(tmp.get() != NULL, "Invalid element specified in ElementCommandLineQuery");
    4444    return true;
    4545  } else {
Note: See TracChangeset for help on using the changeset viewer.