From f59548607674585392b636dcba4a83c091cfa86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20L?= Date: Wed, 29 Jan 2020 14:54:40 -0300 Subject: Fixed GetNodeOrNull GetNodeOrNull was using GetNode instead of GetNodeOrNull --- .../mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/mono/glue/GodotSharp') diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs index 5023725f17..5d16260f5d 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs @@ -9,7 +9,7 @@ namespace Godot public T GetNodeOrNull(NodePath path) where T : class { - return GetNode(path) as T; + return GetNodeOrNull(path) as T; } public T GetChild(int idx) where T : class -- cgit v1.2.3