Alpha 1.0.32: Fix build in Xcode.

This commit is contained in:
John Preston 2017-04-12 23:28:04 +03:00
parent ca90b8b8fd
commit af28e3b0d7
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {