diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-20 08:09:57 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-20 08:09:57 +0200 |
commit | 6cbaf7662f5ee3ca1d02c0ebc85854fceee057af (patch) | |
tree | 9c6c688f72d0a6e2e79879be73e15adeb328d1b1 /core/input_map.cpp | |
parent | 584ca0f156cec64c259382895e105cf27566a987 (diff) | |
download | redot-engine-6cbaf7662f5ee3ca1d02c0ebc85854fceee057af.tar.gz |
Changed some code showed in LGTM and Coverage
Diffstat (limited to 'core/input_map.cpp')
-rw-r--r-- | core/input_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input_map.cpp b/core/input_map.cpp index 04911787a8..165999f081 100644 --- a/core/input_map.cpp +++ b/core/input_map.cpp @@ -202,7 +202,7 @@ bool InputMap::event_get_action_status(const Ref<InputEvent> &p_event, const Str if (p_pressed != NULL) *p_pressed = input_event_action->is_pressed(); if (p_strength != NULL) - *p_strength = (*p_pressed) ? input_event_action->get_strength() : 0.0f; + *p_strength = (p_pressed != NULL && *p_pressed) ? input_event_action->get_strength() : 0.0f; return input_event_action->get_action() == p_action; } |