From 111468c672511e5a4d94c6edfed8763c7f3511ef Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 8 Jul 2016 19:41:55 -0400 Subject: [PATCH] Fix not being able to turn off FIND tool when a life element is selected --- src/gui/game/GameView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 185a60154..bff6826e5 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -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;