mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 14:53:49 +00:00
Fix asserts
This commit is contained in:
parent
fa37aba768
commit
992c72e4b5
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue