From 11074a5eccff26e7e8244530a3aa09c563bd41ba Mon Sep 17 00:00:00 2001 From: sasha80 Date: Fri, 28 Mar 2025 09:06:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/frame-ecm-list/scroll-ecm-list.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenes/frame-ecm-list/scroll-ecm-list.gd b/scenes/frame-ecm-list/scroll-ecm-list.gd index 495e25c..8ffd79d 100644 --- a/scenes/frame-ecm-list/scroll-ecm-list.gd +++ b/scenes/frame-ecm-list/scroll-ecm-list.gd @@ -122,7 +122,6 @@ func on_interfer_new(ecm, table_index): func on_interfer_off(ecm, ecms, thrs, table_index): $table.remove_row(table_index[ecm.ispp]) - table_index.clear() rehash(table_index) ecms.erase(ecm.ispp) thrs.erase(ecm.ispp) @@ -137,6 +136,7 @@ func on_interfer_off(ecm, ecms, thrs, table_index): ## Перестраивает индекс таблицы. Вызывать при удалении строки func rehash(table_index: Dictionary): + table_index.clear() var rows_count = $table.get_rows_count() for i_row in rows_count: var item = $table.get_node2(0, i_row)