| version 1.24 | version 1.25 |
|---|
| |
| oldres = res; | oldres = res; |
| oldatoms = res->atoms; | oldatoms = res->atoms; |
| } | } |
| if ( topo_mol_add_atom(mol,&(res->atoms),oldatoms,atomdef) ) { | if ( atomdef->type[0] == '\0' ) { |
| | topo_mol_find_atom(&(res->atoms),oldatoms,atomdef->name); |
| | } else if ( topo_mol_add_atom(mol,&(res->atoms),oldatoms,atomdef) ) { |
| sprintf(errmsg,"add atom failed in patch %s",rname); | sprintf(errmsg,"add atom failed in patch %s",rname); |
| topo_mol_log_error(mol,errmsg); | topo_mol_log_error(mol,errmsg); |
| return -8; | return -8; |