diff options
| author | Fabio Alessandrelli | 2016-10-13 11:28:38 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2016-10-13 11:49:22 +0200 |
| commit | 11349a786be1fd02647493cfeff9883898ffd73e (patch) | |
| tree | 88c35129b844eacbee9126b9bcdbd222e4a2ae1d /modules/gdscript/gd_functions.cpp | |
| parent | 12843167cacf3bacca32c29b7ea8b4426392bad0 (diff) | |
| download | godot-11349a786be1fd02647493cfeff9883898ffd73e.tar.gz godot-11349a786be1fd02647493cfeff9883898ffd73e.tar.zst godot-11349a786be1fd02647493cfeff9883898ffd73e.zip | |
Diffstat (limited to 'modules/gdscript/gd_functions.cpp')
| -rw-r--r-- | modules/gdscript/gd_functions.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index e82eb8377..e224ce471 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -840,10 +840,6 @@ void GDFunctions::call(Function p_func,const Variant **p_args,int p_arg_count,Va r_error.error=Variant::CallError::CALL_ERROR_INVALID_ARGUMENT; r_error.argument=0; r_ret=Variant(); - } else if(((String)(*p_args[0])).begins_with("/")) { - r_error.error=Variant::CallError::CALL_ERROR_INVALID_ARGUMENT; - r_error.argument=0; - r_ret=RTR("Paths cannot start with '/', absolute paths must start with 'res://', 'user://', or 'local://'"); } else { r_ret=ResourceLoader::load(*p_args[0]); } |
