mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Merge pull request #4827 from 9600bauds/thingthinghasnoparts
Fixes runtime when trying to filter all categories at the circuit imprinter menu with no linked protolathe
This commit is contained in:
@@ -561,7 +561,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
||||
else if(href_list["toggleAllCategories"]) //Filter all categories, if all are filtered, clear filter.
|
||||
var/machine = href_list["machine"]
|
||||
var/list/tempfilter = filtered[machine] //t-thanks BYOND
|
||||
if(tempfilter.len == linked_lathe.part_sets.len)
|
||||
if(tempfilter.len == (machine == "protolathe" ? linked_lathe.part_sets.len : linked_imprinter.part_sets.len))
|
||||
filtered[machine] = list()
|
||||
else
|
||||
filtered[machine] = list()
|
||||
|
||||
Reference in New Issue
Block a user