fix access violation in vector2.

pull/1641/head
Kim Kulling 2017-12-14 17:59:23 +01:00
parent 245b9b4bb1
commit bef219a2d9
2 changed files with 0 additions and 16 deletions

View File

@ -85,7 +85,6 @@ public:
const aiVector2t& operator /= (TReal f);
TReal operator[](unsigned int i) const;
TReal& operator[](unsigned int i);
bool operator== (const aiVector2t& other) const;
bool operator!= (const aiVector2t& other) const;

View File

@ -134,21 +134,6 @@ TReal aiVector2t<TReal>::operator[](unsigned int i) const {
return x;
}
// ------------------------------------------------------------------------------------------------
template <typename TReal>
inline
TReal& aiVector2t<TReal>::operator[](unsigned int i) {
switch (i) {
case 0:
return x;
case 1:
return y;
default:
break;
}
return x;
}
// ------------------------------------------------------------------------------------------------
template <typename TReal>
inline