diff --git a/docs/changelog.txt b/docs/changelog.txt index 7a13ba6f4..2a03e6a60 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -62,6 +62,7 @@ Template for new versions: ## Fixes - `stockpiles`: hide configure and help buttons when the overlay panel is minimized - `caravan`: price of vermin swarms correctly adjusted down. a stack of 10000 bees is worth 10, not 10000 +- `sort`: when filtering out already-established temples in the location assignment screen, also filter out the "No specific deity" option if a non-denominational temple has already been established ## Misc Improvements - `buildingplan`: display how many items are available on the planner panel diff --git a/plugins/lua/sort/locationselector.lua b/plugins/lua/sort/locationselector.lua index f88095203..bdacc1630 100644 --- a/plugins/lua/sort/locationselector.lua +++ b/plugins/lua/sort/locationselector.lua @@ -131,7 +131,6 @@ function LocationSelectorOverlay:get_cache() end function LocationSelectorOverlay:matches_temple_filter(id, flag) - if id == -1 then return true end local hide_established = self.subviews.hide_established:getOptionValue() return not hide_established or not safe_index(self:get_cache(), 'temple', flag, id) end