Skip to content

Commit 6c2665d

Browse files
authored
Update order-search-filter.lua
Added self:drop_deleted_from_snapshot(self:detect_deleted_ids()) I was receiving a crash while troubleshooting. With this change, the crash no longer occurs. Repro steps: Open the work order menu Search: meal Delete Easy Meal and Lavish Meal Exit the work order menu Re-enter the work order menu Search: meal Error: The deleted Easy Meal and Lavish Meal reappear. This is an error. If the user attempts to delete them again or quit, the game crashes.
1 parent abbd833 commit 6c2665d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

order-search-filter.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ end
201201
function OrderSearchFilter:restore_orders()
202202
if not self.unfiltered_entries then return end
203203

204+
self:drop_deleted_from_snapshot(self:detect_deleted_ids())
204205
self:incorporate_new_visible_orders_into_snapshot()
205206
self:rebuild_visible_orders(entries_to_orders(self.unfiltered_entries))
206207

0 commit comments

Comments
 (0)