summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/AssetsUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/minecraft/AssetsUtils.cpp')
-rw-r--r--api/logic/minecraft/AssetsUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/minecraft/AssetsUtils.cpp b/api/logic/minecraft/AssetsUtils.cpp
index 5191e5bd..ad864d51 100644
--- a/api/logic/minecraft/AssetsUtils.cpp
+++ b/api/logic/minecraft/AssetsUtils.cpp
@@ -199,7 +199,7 @@ NetActionPtr AssetObject::getDownloadAction()
auto rawHash = QByteArray::fromHex(hash.toLatin1());
objectDL->addValidator(new Net::ChecksumValidator(QCryptographicHash::Sha1, rawHash));
}
- objectDL->m_total_progress = size;
+ objectDL->setProgress(0, size);
return objectDL;
}
return nullptr;