Changes in src/atom.cpp [1513a74:920c70]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/atom.cpp
r1513a74 r920c70 40 40 41 41 atom *atom::clone(){ 42 atom *res = new atom( );42 atom *res = new atom(this); 43 43 res->previous=0; 44 44 res->next=0; … … 270 270 { 271 271 if (ComponentNr != NULL) 272 Free(&ComponentNr);273 ComponentNr = Malloc<int>(ListOfBonds.size()+1, "atom::InitComponentNumbers: *ComponentNr");272 delete[](ComponentNr); 273 ComponentNr = new int[ListOfBonds.size()+1]; 274 274 for (int i=ListOfBonds.size()+1;i--;) 275 275 ComponentNr[i] = -1;
Note:
See TracChangeset
for help on using the changeset viewer.