From bee7b09377bc4a086f3967f60bedfb9321cb4446 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 5 May 2022 14:05:22 -0400 Subject: [PATCH] fix cut-n-paste bug --- src/modify.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modify.h b/src/modify.h index bd80cbece1..4aeb53dcc6 100644 --- a/src/modify.h +++ b/src/modify.h @@ -130,7 +130,7 @@ class Modify : protected Pointers { // new API Compute *get_compute_by_id(const std::string &) const; Compute *get_compute_by_index(int idx) const { - return ((idx >= 0) && (idx < nfix)) ? compute[idx] : nullptr; + return ((idx >= 0) && (idx < ncompute)) ? compute[idx] : nullptr; } const std::vector get_compute_by_style(const std::string &) const; const std::vector &get_compute_list();