mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 08:12:53 +01:00
Fix memcpy to copy_n mistake from 0c71855
This commit is contained in:
@@ -115,7 +115,7 @@ void SawyerChunkReader::ReadChunk(void * dst, size_t length)
|
||||
}
|
||||
else
|
||||
{
|
||||
std::copy_n(chunkData, length, (uint8 *)dst);
|
||||
std::copy_n(chunkData, chunkLength, (uint8 *)dst);
|
||||
auto remainingLength = length - chunkLength;
|
||||
if (remainingLength > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user