- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp
r955b91 rf10b0c 28 28 #include "World.hpp" 29 29 30 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery( std::string title, std::string _description) :31 Dialog::ElementQuery( title, _description)30 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> ¶m, std::string title, std::string _description) : 31 Dialog::ElementQuery(param, title, _description) 32 32 {} 33 33 … … 40 40 if (CommandLineParser::getInstance().vm.count(getTitle())) { 41 41 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"); 44 44 return true; 45 45 } else {
Note:
See TracChangeset
for help on using the changeset viewer.