Skip to content

Commit

Permalink
[item] fix enumeration of (present) item type ids
Browse files Browse the repository at this point in the history
  • Loading branch information
chdoc committed Jan 26, 2024
1 parent f606e94 commit 605b8c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Template for new versions:

## Fixes
- `makeown`: fix error when adopting units that need a historical figure to be created
- `item`: fix missing item categories when using ``--by-type``

## Misc Improvements

Expand Down
2 changes: 1 addition & 1 deletion item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function executeWithPrinting (action, conditions, options)
end
if options.bytype and count > 0 then
local sorted = {}
for tp, ct in ipairs(types) do
for tp, ct in pairs(types) do
table.insert(sorted, { type = tp, count = ct })
end
table.sort(sorted, function(a, b) return a.count > b.count end)
Expand Down

0 comments on commit 605b8c5

Please sign in to comment.