mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #7136: Wrong categorisation of objects
Regression introduced in DuplicateArray when converting CopyArray to memcpy
This commit is contained in:
parent
0fc0d16e85
commit
fbf0243aa3
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue