diff options
author | zochris <20927697+zochris@users.noreply.github.com> | 2018-10-05 15:32:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 15:32:33 +0200 |
commit | 4a1186496896f71b48a791cc11a9e8c6db5cb416 (patch) | |
tree | 689a72e98720a10744af29a4a7cf32a8de2fbb84 /modules | |
parent | b84992e37454594a01fd2deec807edcb40d70679 (diff) |
loosen generic guard on method for ResourceLoader
For more details see #22658
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mono/glue/Managed/Files/GD.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/Managed/Files/GD.cs b/modules/mono/glue/Managed/Files/GD.cs index 264be23588..3a2a527704 100644 --- a/modules/mono/glue/Managed/Files/GD.cs +++ b/modules/mono/glue/Managed/Files/GD.cs @@ -65,7 +65,7 @@ namespace Godot 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); } |