summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorzochris <20927697+zochris@users.noreply.github.com>2018-10-05 15:32:33 +0200
committerGitHub <noreply@github.com>2018-10-05 15:32:33 +0200
commit4a1186496896f71b48a791cc11a9e8c6db5cb416 (patch)
tree689a72e98720a10744af29a4a7cf32a8de2fbb84 /modules
parentb84992e37454594a01fd2deec807edcb40d70679 (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.cs2
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);
}