Fix T46403: motion tracking not workig with Xcode 7 on OS X.

Caused by use of the uninitialized shape_ variable in Resize().
This commit is contained in:
Brecht Van Lommel 2015-10-10 04:08:16 +02:00
parent db3dfb76a8
commit 64e4f9967f

@ -61,7 +61,8 @@ class ArrayND : public BaseArray {
Resize(s0, s1, s2);
}
ArrayND(T* data, int s0, int s1, int s2) : data_(data), own_data_(false) {
ArrayND(T* data, int s0, int s1, int s2)
: shape_(0), strides_(0), data_(data), own_data_(false) {
Resize(s0, s1, s2);
}