From b0fe1aaa172f960a0460f2fde9a357b08d98eff7 Mon Sep 17 00:00:00 2001 From: Suguru Kato Date: Thu, 23 Jan 2020 14:00:26 +0900 Subject: [PATCH] :bug: Fix SpatiocyteWorld::check_neighbor() --- ecell4/spatiocyte/SpatiocyteWorld.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecell4/spatiocyte/SpatiocyteWorld.cpp b/ecell4/spatiocyte/SpatiocyteWorld.cpp index c62f2dbaf..e286be8f7 100644 --- a/ecell4/spatiocyte/SpatiocyteWorld.cpp +++ b/ecell4/spatiocyte/SpatiocyteWorld.cpp @@ -355,8 +355,7 @@ boost::optional SpatiocyteWorld::check_neighbor(const Voxel &voxel, { const Voxel neighbor(get_neighbor(voxel, rnd)); boost::shared_ptr mt(neighbor.get_voxel_pool()); - const std::string serial(mt->is_vacant() ? "" : mt->species().serial()); - if (serial == loc) + if (mt->species().serial() == loc) { tmp.push_back(neighbor); }