Fix C# API assembly build errors in generics

This commit is contained in:
Ignacio Etcheverry
2018-10-05 19:39:11 +02:00
parent 6bc18042c2
commit b5aa5bca12
3 changed files with 7 additions and 7 deletions
@@ -2,9 +2,9 @@ namespace Godot
{
public static partial class ResourceLoader
{
public static T Load<T>(string path) where T : Godot.Resource
public static T Load<T>(string path) where T : class
{
return (T) Load(path);
return (T)(object)Load(path);
}
}
}