mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-22 11:34:02 +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;
|
||||
switch(m_WrapMode) {
|
||||
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;
|
||||
|
||||
case eWrapMode_Wrap:
|
||||
|
|
Loading…
Reference in a new issue