From 06f88093374e54a58f85f704cba1a2d2166be914 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 6 Nov 2018 20:50:51 +0100 Subject: [PATCH] Fix in Save_C64_multi() --- src/miscfileformats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/miscfileformats.c b/src/miscfileformats.c index 9e65079c..d8f7b304 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -2800,7 +2800,7 @@ int Save_C64_multi(T_IO_Context *context, byte saveWhat, byte loadAddr) // Count the number of used colors in the tile for (n = 0; n<16; n++) { - if (cols & (1 << pixel)) + if (cols & (1 << n)) used++; }