Skip to content

Commit

Permalink
🐛 Fix SpatiocyteWorld::check_neighbor()
Browse files Browse the repository at this point in the history
  • Loading branch information
0ncorhynchus committed Jan 23, 2020
1 parent 186b1ec commit b0fe1aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ecell4/spatiocyte/SpatiocyteWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ boost::optional<Voxel> SpatiocyteWorld::check_neighbor(const Voxel &voxel,
{
const Voxel neighbor(get_neighbor(voxel, rnd));
boost::shared_ptr<const VoxelPool> 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);
}
Expand Down

0 comments on commit b0fe1aa

Please sign in to comment.