1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Stop constantly resizing vector

This commit is contained in:
zsilencer
2016-04-20 00:25:31 -06:00
parent b257e431d9
commit e582a8f47f

View File

@@ -1742,8 +1742,8 @@ void Network::Client_Handle_MAP(NetworkConnection& connection, NetworkPacket& pa
if (chunksize <= 0) {
return;
}
if (offset + chunksize > chunk_buffer.size()) {
chunk_buffer.resize(offset + chunksize);
if (size > chunk_buffer.size()) {
chunk_buffer.resize(size);
}
char str_downloading_map[256];
unsigned int downloading_map_args[2] = {(offset + chunksize) / 1024, size / 1024};