You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Remove unnecessary assignments
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user