diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 8eeaa0e0f..c3799ade6 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -4625,7 +4625,7 @@ static void polymer_getbuildmaterial(_prmaterial* material, int16_t tile } // Lazily fill in all the textures we need, move this to precaching later - if (pr_artmapping && (!pth || !pth->hicr) && tilenum <= (MAXTILES - 4)) { + if (pr_artmapping && (!pth || !pth->hicr) && tilenum < (MAXTILES - 4)) { if (!prartmaps[tilenum]) { char *tilebuffer = (char *)waloff[tilenum]; char *tempbuffer = (char *)Bmalloc(tilesizx[tilenum] * tilesizy[tilenum]);