浏览代码

fixed crash on code that checks InputEvent

Juan Linietsky 8 年之前
父节点
当前提交
6161e731d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/os/input_event.cpp

+ 1 - 1
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 {