diff options
| author | eska | 2016-08-06 02:20:59 +0200 |
|---|---|---|
| committer | eska | 2016-08-06 02:21:29 +0200 |
| commit | 4cd246898e00bd029af95f3b5fafe7a1e979ceff (patch) | |
| tree | 3f85340c9b0f6d0041dd9aded7bdf7a10d08d058 /modules/gdscript/gd_script.cpp | |
| parent | 2b5198b23dde370563719f57d158f4f342263be2 (diff) | |
| download | godot-4cd246898e00bd029af95f3b5fafe7a1e979ceff.tar.gz godot-4cd246898e00bd029af95f3b5fafe7a1e979ceff.tar.zst godot-4cd246898e00bd029af95f3b5fafe7a1e979ceff.zip | |
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
| -rw-r--r-- | modules/gdscript/gd_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index d1946e2a6..db11974d0 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -663,7 +663,7 @@ void GDScript::_get_property_list(List<PropertyInfo> *p_properties) const { void GDScript::_bind_methods() { - ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"new",&GDScript::_new,MethodInfo("new")); + ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"new",&GDScript::_new,MethodInfo(Variant::OBJECT,"new")); ObjectTypeDB::bind_method(_MD("get_as_byte_code"),&GDScript::get_as_byte_code); |
