Fix a typo in loadpalette that broke reading of the lognumalphatabs byte.

git-svn-id: https://svn.eduke32.com/eduke32@5370 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-10-03 11:53:02 +00:00
parent 5c09daf294
commit 9991201f04

View file

@ -8396,7 +8396,7 @@ static void loadpalette(void)
// Read log2 of count of alpha blending tables. // Read log2 of count of alpha blending tables.
uint8_t lognumalphatabs; uint8_t lognumalphatabs;
if (kread_and_test(fil, &lognumalphatabs, 1)) if (!kread_and_test(fil, &lognumalphatabs, 1))
{ {
if (!(lognumalphatabs >= 1 && lognumalphatabs <= 7)) if (!(lognumalphatabs >= 1 && lognumalphatabs <= 7))
initprintf("invalid lognumalphatabs value, must be in [1 .. 7]\n"); initprintf("invalid lognumalphatabs value, must be in [1 .. 7]\n");