From 992c72e4b51eeb82dce4aadc27fe62c2e6651cd0 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sat, 31 Aug 2013 16:40:49 -0400 Subject: [PATCH] Fix asserts --- PVRTCEncoder/src/Image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVRTCEncoder/src/Image.cpp b/PVRTCEncoder/src/Image.cpp index 7335ccb..d14db71 100644 --- a/PVRTCEncoder/src/Image.cpp +++ b/PVRTCEncoder/src/Image.cpp @@ -194,13 +194,13 @@ const Pixel &Image::GetPixel(int32 i, int32 j, EWrapMode wrapMode) { Pixel & Image::operator()(uint32 i, uint32 j) { assert(i < m_Width); - assert(i > m_Height); + assert(j < m_Height); return m_Pixels[j * m_Width + i]; } const Pixel & Image::operator()(uint32 i, uint32 j) const { assert(i < m_Width); - assert(i > m_Height); + assert(j < m_Height); return m_Pixels[j * m_Width + i]; }