summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--transformation.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/transformation.hpp b/transformation.hpp
index 0731ec9..33ac50f 100644
--- a/transformation.hpp
+++ b/transformation.hpp
@@ -85,7 +85,7 @@ public:
std::set<Spin<U, D, S>*> current() const override { return {s1Old, s2Old}; }
std::set<Spin<U, D, S>*> toConsider() const override {
- std::set<Spin<U, D, S>*> neighbors;
+ std::set<Spin<U, D, S>*> neighbors = {NULL};
std::set<Spin<U, D, S>*> current_neighbors_1 = M.dict.neighbors(s1Old->x);
std::set<Spin<U, D, S>*> current_neighbors_2 = M.dict.neighbors(s2Old->x);
std::set<Spin<U, D, S>*> new_neighbors_1 = M.dict.neighbors(s1New.x);
@@ -95,7 +95,6 @@ public:
neighbors.insert(current_neighbors_2.begin(), current_neighbors_2.end());
neighbors.insert(new_neighbors_1.begin(), new_neighbors_1.end());
neighbors.insert(new_neighbors_2.begin(), new_neighbors_2.end());
- neighbors.insert(NULL);
return neighbors;
}