Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Template for new versions:
## New Features

## Fixes
- `gui/rename`: added check for entity_id input in get_target function

## Misc Improvements

Expand Down
3 changes: 3 additions & 0 deletions gui/rename.lua
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,9 @@ local function get_target(opts)
if opts.histfig_id then
target = get_hf_target(df.historical_figure.find(opts.histfig_id))
if not target then qerror('Historical figure not found') end
elseif opts.entity_id then
target = get_entity_target(df.historical_entity.find(opts.entity_id))
if not target then qerror('Entity not found') end
elseif opts.item_id then
target = get_artifact_target(df.item.find(opts.item_id))
if not target then qerror('Artifact not found') end
Expand Down