(svn r22208) -Fix [FS#4543]: When downloading a file via HTTP failed mid-way and OpenTTD fell back to the old system the partial downloaded amount would be counted twice

This commit is contained in:
rubidium
2011-03-06 10:11:59 +00:00
parent bbde7766d2
commit db6121f361
3 changed files with 10 additions and 6 deletions

View File

@@ -175,7 +175,7 @@ public:
}
}
virtual void OnDownloadProgress(const ContentInfo *ci, uint bytes)
virtual void OnDownloadProgress(const ContentInfo *ci, int bytes)
{
if (ci->id != this->cur_id) {
strecpy(this->name, ci->filename, lastof(this->name));