Permalink
Browse files

Fix LIFE tool sampling

  • Loading branch information...
jacob1 committed Jul 23, 2016
1 parent 0c95c33 commit 21e0c4079cdf091ca68e0071edcd48678300a168
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/game/SampleTool.cpp
@@ -54,7 +54,7 @@ void SampleTool::Draw(Simulation * sim, Brush * brush, ui::Point position)
for(std::vector<Tool*>::iterator iter = elementTools.begin(), end = elementTools.end(); iter != end; ++iter)
{
Tool * elementTool = *iter;
if(elementTool && elementTool->GetToolID() == particleCtype)
if(elementTool && elementTool->GetToolID()/256 == particleCtype)
gameModel->SetActiveTool(0, elementTool);
}
}

0 comments on commit 21e0c40

Please sign in to comment.