1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #7136: Wrong categorisation of objects

Regression introduced in DuplicateArray when converting CopyArray to memcpy
This commit is contained in:
Ted John
2018-02-06 18:19:10 +00:00
parent 0fc0d16e85
commit fbf0243aa3

View File

@@ -99,7 +99,7 @@ namespace Memory
static T * DuplicateArray(const T * src, size_t count)
{
T * result = AllocateArray<T>(count);
return (T *)memcpy(result, src, count);
return (T *)memcpy(result, src, count * sizeof(T));
}
template<typename T>