--- trunk/src/mengine/src/read_sdf.c 2008/12/01 06:44:59 58 +++ trunk/src/mengine/src/read_sdf.c 2008/12/02 07:28:56 62 @@ -316,7 +316,7 @@ } } else if (strcasecmp(tag,"restrained_atoms") == 0) { - tab = tabulator_new_from_file_using_header(rfile,"ATOM1 MAX F_CONST X Y Z",0); + tab = tabulator_new_from_file_using_header(rfile,"ATOM MAX F_CONST X Y Z",0); if (tab) { n_row = tabulator_height(tab); @@ -345,7 +345,7 @@ } if (strlen(tab[i][5]) > 0) // y postion { - xtmp = atof(tab[i][3]); + xtmp = atof(tab[i][5]); restrain_atom.restrain_position[restrain_atom.natom_restrain][2] = xtmp; } restrain_atom.natom_restrain++;