diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index b1da1d56e..a76d29a9c 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -13435,16 +13435,12 @@ void makepalookup(int32_t palnum, const char *remapbuf, int8_t r, int8_t g, int8 for (i=0; i<256; i++) { - ptr = (char *)(FP_OFF(palookup[0])+remapbuf[i]); - ptr2 = (char *)(FP_OFF(palookup[palnum])+i); + ptr = palookup[0] + remapbuf[i]; + ptr2 = palookup[palnum] + i; + for (j=0; jskybox) { for (j=5; j>=0; j--) - { if (hr->skybox->face[j]) - { Bfree(hr->skybox->face[j]); - } - } Bfree(hr->skybox); } - if (hr->filename) Bfree(hr->filename); + + if (hr->filename) + Bfree(hr->filename); + Bfree(hr); hr = next; } } - memset(hicreplc,0,sizeof(hicreplc)); + + Bmemset(hicreplc,0,sizeof(hicreplc)); hicfirstinit = 1; }