diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index d11a5c5e0..9a7357c0c 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -639,11 +639,11 @@ void HWR_PrecacheLevel(void) if (!texturepresent[i]) continue; - if (texturepresent[j] & 1) - HWR_GetTexture(j, false); + if (texturepresent[i] & 1) + HWR_GetTexture(i, false); - if (texturepresent[j] & 2) - HWR_GetTexture(j, true); + if (texturepresent[i] & 2) + HWR_GetTexture(i, true); } free(texturepresent);