瀏覽代碼

Fix action_get_events returning booleans instead of InputKey entries

Julien Nguyen 4 年之前
父節點
當前提交
daee3c316f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/input/input_map.cpp

+ 1 - 1
core/input/input_map.cpp

@@ -196,7 +196,7 @@ Array InputMap::_action_get_events(const StringName &p_action) {
 	const List<Ref<InputEvent>> *al = action_get_events(p_action);
 	if (al) {
 		for (const List<Ref<InputEvent>>::Element *E = al->front(); E; E = E->next()) {
-			ret.push_back(E);
+			ret.push_back(E->get());
 		}
 	}