diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-30 16:33:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 16:33:12 +0100 |
commit | 3c3ed67c3944a555d18fa8b68603f3a68416e27e (patch) | |
tree | da2ccb0567653400f08ed37dae15a0822bc955f6 | |
parent | 6fcb58f40dae8228074591e3262d5db97db3e2d7 (diff) | |
parent | f59548607674585392b636dcba4a83c091cfa86f (diff) |
Merge pull request #35708 from MightyPrinny/patch-1
Mono: Fixed GetNodeOrNull<T>
-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 |