From 9991201f04c2a3d0982a36b267e888b36293ff5f Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 3 Oct 2015 11:53:02 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 75647b652..aa479259e 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -8396,7 +8396,7 @@ static void loadpalette(void) // Read log2 of count of alpha blending tables. uint8_t lognumalphatabs; - if (kread_and_test(fil, &lognumalphatabs, 1)) + if (!kread_and_test(fil, &lognumalphatabs, 1)) { if (!(lognumalphatabs >= 1 && lognumalphatabs <= 7)) initprintf("invalid lognumalphatabs value, must be in [1 .. 7]\n");