mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-26 01:07:59 +00:00
Fix small bug
This commit is contained in:
parent
16dd6c2af2
commit
acd986d6b7
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class Indexer {
|
||||||
int32 r;
|
int32 r;
|
||||||
switch(m_WrapMode) {
|
switch(m_WrapMode) {
|
||||||
case eWrapMode_Clamp:
|
case eWrapMode_Clamp:
|
||||||
r = static_cast<uint32>(std::max(0, std::min(i, l)));
|
r = static_cast<uint32>(std::max(0, std::min(i, l-1)));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case eWrapMode_Wrap:
|
case eWrapMode_Wrap:
|
||||||
|
|
Loading…
Reference in a new issue