diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-05-23 08:13:11 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-05-23 08:13:11 -0300 |
commit | 6161e731d09fccaa6ccf103920305431638d2bd0 (patch) | |
tree | 8e601c33a5f7f9cddbf54e8dd799edc3cc7a7386 /core/os | |
parent | a77e53b0a554d9f5b56122445e8215e2584488ce (diff) |
fixed crash on code that checks InputEvent
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/input_event.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/input_event.cpp b/core/os/input_event.cpp index 2538e8dad2..b2febb1a63 100644 --- a/core/os/input_event.cpp +++ b/core/os/input_event.cpp @@ -57,7 +57,7 @@ bool InputEvent::is_pressed() const { bool InputEvent::is_action(const StringName &p_action) const { - return InputMap::get_singleton()->event_is_action(Ref<InputEvent>(this), p_action); + return InputMap::get_singleton()->event_is_action(Ref<InputEvent>((InputEvent *)this), p_action); } bool InputEvent::is_action_pressed(const StringName &p_action) const { |