diff --git a/src/Matrix.cpp b/src/Matrix.cpp index f6b054b..68fb572 100644 --- a/src/Matrix.cpp +++ b/src/Matrix.cpp @@ -216,10 +216,10 @@ namespace Aurora { , mData(aData) , mInfo(aInfo) { - size_t infoSize = aInfo.size(); + size_t infoSize = mInfo.size(); for(;infoSize<3;++infoSize) { - aInfo.push_back(1); + mInfo.push_back(1); } } @@ -251,7 +251,7 @@ namespace Aurora { } int Matrix::getDimSize(int aIndex) const { - if (aIndex >= 0 && aIndex < 3 && aIndex < getDims()) { + if (aIndex >= 0 && aIndex < 3) { return mInfo.at(aIndex); } return 0;