forked from rosebudai/OpenRCT2-Web
Stop constantly resizing vector
This commit is contained in:
1 parent
b257e431d9
commit
e582a8f47f
1 file changed
+2
-2
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user