Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/AddAction.cpp

    rf10b0c rbe21fa  
    4343  // execute action
    4444  atom * first = World::getInstance().createAtom();
    45   first->setType(params.elemental.get());
    46   first->setPosition(params.position.get());
     45  first->setType(params.elemental);
     46  first->setPosition(params.position);
    4747  LOG(1, "Adding new atom with element " << first->getType()->getName() << " at " << (first->getPosition()) << ".");
    4848  // TODO: remove when all of World's atoms are stored.
     
    6868
    6969  atom * first = World::getInstance().createAtom();
    70   first->setType(state->params.elemental.get());
    71   first->setPosition(state->params.position.get());
    72   LOG(1, "Re-adding new atom with element " << state->params.elemental.get()->getName() << " at " << state->params.position.get() << ".");
     70  first->setType(state->params.elemental);
     71  first->setPosition(state->params.position);
     72  LOG(1, "Re-adding new atom with element " << state->params.elemental->getName() << " at " << state->params.position << ".");
    7373  // TODO: remove when all of World's atoms are stored.
    7474  std::vector<molecule *> molecules = World::getInstance().getAllMolecules();
Note: See TracChangeset for help on using the changeset viewer.