- fixed compilation.

This commit is contained in:
Christoph Oelckers 2019-10-21 19:36:54 +02:00
parent 8c7590e161
commit 72b87e5bd7
4 changed files with 9 additions and 24 deletions

View file

@ -2798,7 +2798,7 @@ static int32_t defsparser(scriptfile *script)
break;
}
if (palookupbuf >= 256*32)
if (palookupbuf.Size() >= 256*32)
{
didLoadShade = 1;
numshades = 32;
@ -2813,7 +2813,7 @@ static int32_t defsparser(scriptfile *script)
break;
}
paletteMakeLookupTable(id, palookupbuf, 0,0,0, g_noFloorPal[id]);
paletteMakeLookupTable(id, (char*)palookupbuf.Data(), 0,0,0, g_noFloorPal[id]);
}
break;
}
@ -3091,7 +3091,7 @@ static int32_t defsparser(scriptfile *script)
break;
}
paletteSetBlendTable(id, blendbuf);
paletteSetBlendTable(id, (char*)blendbuf.Data());
didLoadTransluc = 1;
break;
}