From 0fd45c5669e9cf509ea97a636685940a2a587e40 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Fri, 22 Apr 2016 11:17:25 +0100 Subject: [PATCH] Particle types only use internal methods for getting variables --- src/Particles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Particles.h b/src/Particles.h index 659bac2b..7fb55f87 100644 --- a/src/Particles.h +++ b/src/Particles.h @@ -182,7 +182,7 @@ class Particles { /// particles are equal if they have the same id Variable bool operator==(const Particle &rhs) const { - return get(*this) == get(rhs); + return this->get() == rhs.get(); } /// perform a deep particle copy, random number generator is