Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextUI/Query/AtomTextQuery.cpp

    r955b91 rf10b0c  
    3030#include "World.hpp"
    3131
    32 TextDialog::AtomTextQuery::AtomTextQuery(std::string title, std::string _description) :
    33     Dialog::AtomQuery(title,_description)
     32TextDialog::AtomTextQuery::AtomTextQuery(Parameter<const atom *> &param, std::string title, std::string _description) :
     33    Dialog::AtomQuery(param, title,_description)
    3434{}
    3535
     
    5151    }
    5252
    53     tmp = World::getInstance().getAtom(AtomById(idxOfAtom));
    54     if(!tmp && idxOfAtom!=-1){
     53    const atom * temp_atom = World::getInstance().getAtom(AtomById(idxOfAtom));
     54    if(!temp_atom && idxOfAtom!=-1){
    5555      std::cout << "Invalid Atom Index" << idxOfAtom << std::endl;
    5656      badInput = true;
    5757    }
     58    tmp.set(temp_atom);
    5859
    5960  } while(badInput);
Note: See TracChangeset for help on using the changeset viewer.