loosen generic guard on method for ResourceLoader

For more details see #22658
This commit is contained in:
zochris 2018-10-05 15:32:33 +02:00 committed by GitHub
parent b84992e374
commit 4a11864968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ namespace Godot
return ResourceLoader.Load(path); return ResourceLoader.Load(path);
} }
public static T Load<T>(string path) where T : Godot.Resource public static T Load<T>(string path) where T : class
{ {
return (T) ResourceLoader.Load(path); return (T) ResourceLoader.Load(path);
} }