Fix segfault in pull reading
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / grompp.cpp
index 6a20af125b0a1626c976586d1df61cec36014e69..46a48b93e434b724e0038fa7fe0ba875430a501a 100644 (file)
@@ -2304,7 +2304,7 @@ int gmx_grompp(int argc, char* argv[])
             copy_mat(ir->compress, compressibility);
         }
         setStateDependentAwhParams(
-                ir->awhParams, ir->pull, pull, state.box, ir->pbcType, compressibility, &ir->opts,
+                ir->awhParams, *ir->pull, pull, state.box, ir->pbcType, compressibility, &ir->opts,
                 ir->efep != efepNO ? ir->fepvals->all_lambda[efptFEP][ir->fepvals->init_fep_state] : 0,
                 sys, wi);
     }