File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 599
599
600
600
local function unassign_item (bld , item )
601
601
if not bld then return end
602
- local _ , found , idx = utils .binsearch (bld .displayed_items , item .id )
603
- if found then
602
+ local idx , _ = utils .linear_index (bld .displayed_items , item .id )
603
+ if idx then
604
604
bld .displayed_items :erase (idx )
605
605
end
606
606
end
@@ -628,7 +628,7 @@ local function attach_item(item, display_bld)
628
628
local ref = df .new (df .general_ref_building_display_furniturest )
629
629
ref .building_id = display_bld .id
630
630
item .general_refs :insert (' #' , ref )
631
- utils . insert_sorted ( display_bld .displayed_items , item .id )
631
+ display_bld .displayed_items : insert ( ' # ' , item .id )
632
632
item .flags .forbid = false
633
633
item .flags .in_building = false
634
634
end
You can’t perform that action at this time.
0 commit comments