mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove unnecessary assignments
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
parent
aa5b6ed13e
commit
80fb8db31f
19 changed files with 31 additions and 56 deletions
|
|
@ -40,12 +40,11 @@ void ResourcePreloader::_set_resources(const Array &p_data) {
|
|||
ERR_FAIL_COND(names.size() != resdata.size());
|
||||
|
||||
for (int i = 0; i < resdata.size(); i++) {
|
||||
String name = names[i];
|
||||
Ref<Resource> resource = resdata[i];
|
||||
ERR_CONTINUE(!resource.is_valid());
|
||||
resources[name] = resource;
|
||||
resources[names[i]] = resource;
|
||||
|
||||
//add_resource(name,resource);
|
||||
//add_resource(names[i],resource);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue