Skip to content

Commit

Permalink
Merge pull request #1396 from Azaezel/reportRange
Browse files Browse the repository at this point in the history
Adds data to vector out of bounds reports
  • Loading branch information
crabmusket committed Aug 12, 2015
2 parents c9bf6b1 + 7df625e commit 0172f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/source/core/util/tVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -684,13 +684,13 @@ template<class T> inline void Vector<T>::pop_back()

template<class T> inline T& Vector<T>::operator[](U32 index)
{
AssertFatal(index < mElementCount, "Vector<T>::operator[] - out of bounds array access!");
AssertFatal(index < mElementCount, avar("Vector<T>::operator[%i/%i] - out of bounds array access!", index, mElementCount));
return mArray[index];
}

template<class T> inline const T& Vector<T>::operator[](U32 index) const
{
AssertFatal(index < mElementCount, "Vector<T>::operator[] - out of bounds array access!");
AssertFatal(index < mElementCount, avar("Vector<T>::operator[%i/%i] - out of bounds array access!", index, mElementCount));
return mArray[index];
}

Expand Down

0 comments on commit 0172f22

Please sign in to comment.