Fix T77009: texture baking crash on Windows

Only happens in master, but DynamicArray implementation is wrong also in 2.83.
Thanks to Jesse Y and Ray Molenkamp for investigating.
This commit is contained in:
Brecht Van Lommel
2020-05-25 17:21:18 +02:00
parent 52c356c199
commit 31cb4133b9

View File

@@ -4702,7 +4702,8 @@ static const char *cpp_classes =
" DynamicArray() : data(NULL), length(0) {}\n"
" DynamicArray(int new_length) : data(NULL), length(new_length) { data = (T "
"*)malloc(sizeof(T) * new_length); }\n"
" DynamicArray(const DynamicArray<T>& other) { copy_from(other); }\n"
" DynamicArray(const DynamicArray<T>& other) : data(NULL), length(0) { copy_from(other); "
"}\n"
" const DynamicArray<T>& operator = (const DynamicArray<T>& other) { copy_from(other); "
"return *this; }\n"
"\n"