Fix multi-packet network content requests (ContentVector)

Broken by incorrect merge conflict resolution in ba34ec7ad

See #86
pull/88/head
Jonathan G Rennison 5 years ago
parent 8715574c4a
commit ede88aa6cd

@ -255,7 +255,8 @@ void ClientNetworkContentSocketHandler::RequestContentList(ContentVector *cv, bo
const uint to_send = min<uint>(cv->size() - offset, max_per_packet);
p->Send_uint8(to_send);
for (const ContentInfo *ci : *cv) {
for (uint i = 0; i < to_send; i++) {
const ContentInfo *ci = (*cv)[offset + i];
p->Send_uint8((byte)ci->type);
p->Send_uint32(ci->unique_id);
if (!send_md5sum) continue;

Loading…
Cancel
Save