mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-24 16:25:48 +01:00
Fix asserts
This commit is contained in:
parent
fa37aba768
commit
992c72e4b5
@ -194,13 +194,13 @@ const Pixel &Image::GetPixel(int32 i, int32 j, EWrapMode wrapMode) {
|
|||||||
|
|
||||||
Pixel & Image::operator()(uint32 i, uint32 j) {
|
Pixel & Image::operator()(uint32 i, uint32 j) {
|
||||||
assert(i < m_Width);
|
assert(i < m_Width);
|
||||||
assert(i > m_Height);
|
assert(j < m_Height);
|
||||||
return m_Pixels[j * m_Width + i];
|
return m_Pixels[j * m_Width + i];
|
||||||
}
|
}
|
||||||
|
|
||||||
const Pixel & Image::operator()(uint32 i, uint32 j) const {
|
const Pixel & Image::operator()(uint32 i, uint32 j) const {
|
||||||
assert(i < m_Width);
|
assert(i < m_Width);
|
||||||
assert(i > m_Height);
|
assert(j < m_Height);
|
||||||
return m_Pixels[j * m_Width + i];
|
return m_Pixels[j * m_Width + i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user