mirror of https://github.com/procxx/kepka.git
Alpha 1.0.32: Fix build in Xcode.
This commit is contained in:
parent
ca90b8b8fd
commit
af28e3b0d7
|
@ -46,7 +46,7 @@ void Downloader::requestedAmountIncrement(MTP::DcId dcId, int index, int amount)
|
|||
Expects(index >= 0 && index < MTP::kDownloadSessionsCount);
|
||||
auto it = _requestedBytesAmount.find(dcId);
|
||||
if (it == _requestedBytesAmount.cend()) {
|
||||
it = _requestedBytesAmount.emplace(dcId, RequestedInDc { 0 }).first;
|
||||
it = _requestedBytesAmount.emplace(dcId, RequestedInDc { { 0 } }).first;
|
||||
}
|
||||
it->second[index] += amount;
|
||||
if (it->second[index]) {
|
||||
|
|
Loading…
Reference in New Issue