From 656aa0a501309af374a8a42dc7e01be41fab0d85 Mon Sep 17 00:00:00 2001 From: hondres Date: Mon, 7 Mar 2016 18:56:44 +0100 Subject: [PATCH] fix InputMap::action_erase_event() fixes #3976 (cherry picked from commit 9544042adb2818561370e776f93d6ab7cf0033c5) --- core/input_map.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/input_map.cpp b/core/input_map.cpp index d4560a1e1bd..874ce1c424b 100644 --- a/core/input_map.cpp +++ b/core/input_map.cpp @@ -156,10 +156,7 @@ void InputMap::action_erase_event(const StringName& p_action,const InputEvent& p List::Element *E=_find_event(input_map[p_action].inputs,p_event); if (E) - return; //already gots - - input_map[p_action].inputs.erase(E); - + input_map[p_action].inputs.erase(E); }