Fix "The latest builds show the same screenshot for every save game entry", reported at http://forums.duke4.net/topic/2961-paper-cuts-minor-bugs-and-annoyances/page__view__findpost__p__169847

git-svn-id: https://svn.eduke32.com/eduke32@4038 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-08-24 22:55:37 +00:00
parent 313671d0ab
commit 322888ce83

View file

@ -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]);