Skip to content

Commit

Permalink
Fix not being able to turn off FIND tool when a life element is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jul 8, 2016
1 parent e68dd74 commit 111468c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/game/GameView.cpp
Expand Up @@ -1458,7 +1458,7 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
if (ctrl)
{
Tool *active = c->GetActiveTool(0);
if (active->GetIdentifier().find("_PT_") == active->GetIdentifier().npos || ren->findingElement == active->GetToolID())
if (active->GetIdentifier().find("_PT_") == active->GetIdentifier().npos || ren->findingElement == active->GetToolID()%256)
ren->findingElement = 0;
else
ren->findingElement = active->GetToolID()%256;
Expand Down

0 comments on commit 111468c

Please sign in to comment.