1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Check for null in InputMap::_find_event

(cherry picked from commit f4e34ac353)
This commit is contained in:
Tomasz Chabora
2020-09-23 15:39:06 +02:00
committed by Rémi Verschelde
parent 6dffc1ef46
commit 13d7404cd7

View File

@@ -100,6 +100,7 @@ List<StringName> InputMap::get_actions() const {
}
List<Ref<InputEvent> >::Element *InputMap::_find_event(Action &p_action, const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength) const {
ERR_FAIL_COND_V(!p_event.is_valid(), NULL);
for (List<Ref<InputEvent> >::Element *E = p_action.inputs.front(); E; E = E->next()) {