Fixes bug in processing virtual_sitesn in grompp.
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / topio.c
index 9023b513be09b67ca562084de93e299af5c6a9e4..263e4c4775702950f26e351fbe8b51c1977e90ad 100644 (file)
@@ -918,7 +918,7 @@ static char **read_topol(const char *infile, const char *outfile,
                             break;
 
                         case d_vsitesn:
-                            push_vsitesn(d, plist, &(mi0->atoms), pline, wi);
+                            push_vsitesn(d, mi0->plist, &(mi0->atoms), pline, wi);
                             break;
                         case d_exclusions:
                             assert(block2);