This commit is contained in:
kimkulling
2020-05-28 21:02:13 +02:00
parent 110f8845a2
commit d40a3026db
6 changed files with 32 additions and 16 deletions

View File

@@ -978,7 +978,10 @@ void GetArrayCopy(Type*& dest, ai_uint num ) {
Type* old = dest;
dest = new Type[num];
::memcpy(dest, old, sizeof(Type) * num);
for ( size_t i=0; i<num; ++i ) {
dest[i] = old[i];
}
// ::memcpy(dest, old, sizeof(Type) * num);
}
// ------------------------------------------------------------------------------------------------