mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 23:04:17 +01:00
Fix small bug
This commit is contained in:
parent
16dd6c2af2
commit
acd986d6b7
@ -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 New Issue
Block a user