Fixed GetNodeOrNull<T>

GetNodeOrNull<T> was using GetNode instead of GetNodeOrNull
This commit is contained in:
Fabián L 2020-01-29 14:54:40 -03:00 committed by GitHub
parent 6fcb58f40d
commit f595486076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace Godot
public T GetNodeOrNull<T>(NodePath path) where T : class 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 public T GetChild<T>(int idx) where T : class