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