HWR_PrecacheLevelTextures should also skip texture number 0

whoopsie
This commit is contained in:
alufolie91 committed 2026-11-02 14:58:55 +01:00
1 parent 5183baed44
commit 51adf8869c
1 file changed
+1 -1
+1 -1
View File
@@ -752,7 +752,7 @@ static void HWR_PrecacheLevelTextures(void)
{
const INT32 texnum = sidetex[f];
if (texnum < 0 || (unsigned)texnum >= gl_numtextures)
if (texnum <= 0 || (unsigned)texnum >= gl_numtextures)
continue;
if (!(texturepresent[texnum] & 1))