mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r16361) -Fix: pointer incremented with wrong count
This commit is contained in:
@@ -187,7 +187,7 @@ void ClientNetworkContentSocketHandler::RequestContentList(uint count, const Con
|
|||||||
|
|
||||||
this->Send_Packet(p);
|
this->Send_Packet(p);
|
||||||
count -= p_count;
|
count -= p_count;
|
||||||
content_ids += count;
|
content_ids += p_count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -271,7 +271,7 @@ void ClientNetworkContentSocketHandler::DownloadSelectedContent(uint &files, uin
|
|||||||
|
|
||||||
this->Send_Packet(p);
|
this->Send_Packet(p);
|
||||||
count -= p_count;
|
count -= p_count;
|
||||||
content_ids += count;
|
content_ids += p_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(ids);
|
free(ids);
|
||||||
|
Reference in New Issue
Block a user