diff --git a/src/fix_vector.cpp b/src/fix_vector.cpp index 7c75f93a3a2..3703e961309 100644 --- a/src/fix_vector.cpp +++ b/src/fix_vector.cpp @@ -114,9 +114,11 @@ FixVector::FixVector(LAMMPS *lmp, int narg, char **arg) : error->all(FLERR, "Fix for fix {} vector not computed at compatible time", val.id); if (val.argindex == 0) + value = ifix->extscalar; + else if (ifix->extvector >= 0) value = ifix->extvector; else - value = ifix->extarray; + value = ifix->extlist[val.argindex - 1]; val.val.f = ifix; } else if (val.which == ArgInfo::VARIABLE) {