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