From 7df625ea14b676a915f1704608d80beade694f89 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Wed, 12 Aug 2015 16:17:08 -0500 Subject: [PATCH] Adds data to vector out of bounds reports Like say, if it's crashing out due to being passed a -1, or adding past the end. --- Engine/source/core/util/tVector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/core/util/tVector.h b/Engine/source/core/util/tVector.h index 5042c4ba8f..0280db5f5f 100644 --- a/Engine/source/core/util/tVector.h +++ b/Engine/source/core/util/tVector.h @@ -684,13 +684,13 @@ template inline void Vector::pop_back() template inline T& Vector::operator[](U32 index) { - AssertFatal(index < mElementCount, "Vector::operator[] - out of bounds array access!"); + AssertFatal(index < mElementCount, avar("Vector::operator[%i/%i] - out of bounds array access!", index, mElementCount)); return mArray[index]; } template inline const T& Vector::operator[](U32 index) const { - AssertFatal(index < mElementCount, "Vector::operator[] - out of bounds array access!"); + AssertFatal(index < mElementCount, avar("Vector::operator[%i/%i] - out of bounds array access!", index, mElementCount)); return mArray[index]; }