From c191086812670186f3afc7c980c1b744359ef2a0 Mon Sep 17 00:00:00 2001 From: ssande7 <1731652+ssande7@users.noreply.github.com> Date: Tue, 15 Nov 2022 14:52:24 +1000 Subject: [PATCH] Fix segfault when using dynamic groups with r-RESPA --- src/respa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/respa.cpp b/src/respa.cpp index 650b04e6d6..530c35b3fb 100644 --- a/src/respa.cpp +++ b/src/respa.cpp @@ -372,7 +372,7 @@ void Respa::setup(int flag) mesg += fmt::format(" {}:{}", ilevel + 1, step[ilevel]); mesg += "\n r-RESPA fixes :"; - for (int l = 0; l < modify->n_post_force_respa_any; ++l) { + for (int l = 0; l < modify->n_post_force_respa; ++l) { Fix *f = modify->get_fix_by_index(modify->list_post_force_respa[l]); if (f->respa_level >= 0) mesg += fmt::format(" {}:{}[{}]", MIN(f->respa_level + 1, nlevels), f->style, f->id);