1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

fix InputMap::action_erase_event()

fixes #3976

(cherry picked from commit 9544042adb)
This commit is contained in:
hondres
2016-03-07 18:56:44 +01:00
committed by Rémi Verschelde
parent 7ad50eaea8
commit 656aa0a501

View File

@@ -156,10 +156,7 @@ void InputMap::action_erase_event(const StringName& p_action,const InputEvent& p
List<InputEvent>::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);
}