diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-10-05 20:04:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-05 20:04:37 +0200 |
| commit | f5a77f7bdd6d59f32f7d9aad81dabc5733221275 (patch) | |
| tree | e04b7e300ed7649993b93af3f38cf7bb21e6a881 /modules/mono/glue/Managed/Files/Extensions/ResourceLoaderExtensions.cs | |
| parent | 46a751c638a32b0e21f27c038d91f51ec4102f71 (diff) | |
| parent | b5aa5bca12ef5995da8b5da9614a51a69c133112 (diff) | |
Merge pull request #22769 from neikeq/issue-22765
Fix C# API assembly build errors in generics
Diffstat (limited to 'modules/mono/glue/Managed/Files/Extensions/ResourceLoaderExtensions.cs')
| -rw-r--r-- | modules/mono/glue/Managed/Files/Extensions/ResourceLoaderExtensions.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/glue/Managed/Files/Extensions/ResourceLoaderExtensions.cs b/modules/mono/glue/Managed/Files/Extensions/ResourceLoaderExtensions.cs index ceecc589e6..684d160b57 100644 --- a/modules/mono/glue/Managed/Files/Extensions/ResourceLoaderExtensions.cs +++ b/modules/mono/glue/Managed/Files/Extensions/ResourceLoaderExtensions.cs @@ -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); } } } |