Showing the changes to interface/src/scripting/AccountServicesScriptingInterface.cpp (1 of 21 files). Show all
Unified · Split
| @@ -159,8 +159,8 @@ bool DownloadInfoResultFromScriptValue(const ScriptValue& object, DownloadInfoRe · 158 unmodified lines | ||
| 159 | 159 | |
| 160 | 160 | DownloadInfoResult AccountServicesScriptingInterface::getDownloadInfo() { |
| 161 | 161 | DownloadInfoResult result; |
| 162 | − foreach(const auto& resource, ResourceCache::getLoadingRequests()) { | |
| 163 | − result.downloading.append(resource->getProgress() * 100.0f); | |
| 162 | + foreach(const auto& resourcePair, ResourceCache::getLoadingRequests()) { | |
| 163 | + result.downloading.append(resourcePair.first->getProgress() * 100.0f); | |
| 164 | 164 | } |
| 165 | 165 | result.pending = ResourceCache::getPendingRequestCount(); |
| 166 | 166 | return result; |