From bfd635dedd20175bea2289594d944dad59130878 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 31 Mar 2021 00:52:43 +0200 Subject: [PATCH] rogueviz::kohonen:: no levellines if lv.qty < 0 --- rogueviz/kohonen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rogueviz/kohonen.cpp b/rogueviz/kohonen.cpp index a24238d5..74c84d57 100644 --- a/rogueviz/kohonen.cpp +++ b/rogueviz/kohonen.cpp @@ -969,7 +969,7 @@ namespace levelline { if(levellines.size() == 0) create(); on = false; for(auto& lv: levellines) { - if(!lv.qty) { lv.values.clear(); continue; } + if(!lv.qty || lv.qty < 0) { lv.values.clear(); continue; } on = true; if(!lv.modified) continue; lv.modified = false;