diff options
author | Fabián L <luartefabian2@gmail.com> | 2020-01-29 14:54:40 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 14:54:40 -0300 |
commit | f59548607674585392b636dcba4a83c091cfa86f (patch) | |
tree | da2ccb0567653400f08ed37dae15a0822bc955f6 /modules/mono/glue | |
parent | 6fcb58f40dae8228074591e3262d5db97db3e2d7 (diff) |
Fixed GetNodeOrNull<T>
GetNodeOrNull<T> was using GetNode instead of GetNodeOrNull
Diffstat (limited to 'modules/mono/glue')
-rw-r--r-- | modules/mono/glue/GodotSharp/GodotSharp/Core/Extensions/NodeExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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<T>(NodePath path) where T : class { - return GetNode(path) as T; + return GetNodeOrNull(path) as T; } public T GetChild<T>(int idx) where T : class |