From 5ae6918c295a04c86737b050855fb0f0fcf0185b Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 6 Aug 2022 23:02:52 +0100 Subject: img --- img/better_disp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'img') diff --git a/img/better_disp.lua b/img/better_disp.lua index c278396..77b5aa0 100644 --- a/img/better_disp.lua +++ b/img/better_disp.lua @@ -85,7 +85,9 @@ local function adjust_to_2_colors(R,gromlings,pdists) -- todo: be cleverer when deciding whether to merge a into b, or b into a -- currently just merge b into a - assert(best_a and best_b and best_a ~= best_b) + assert(best_a,"no best_a") + assert(best_b,"no best_b") + assert(best_a ~= best_b,"best a and b are the same") all_current_colors[best_b] = false ncolors=ncolors-1 for gidx,col in ipairs(gromling_colors) do -- cgit v1.2.3