summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--img/better_disp.lua4
1 files changed, 3 insertions, 1 deletions
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