Skip to content

Commit d146c3c

Browse files
committed
Added entity_id check to get_target function
1 parent ff1b95a commit d146c3c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gui/rename.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,9 @@ local function get_target(opts)
983983
if opts.histfig_id then
984984
target = get_hf_target(df.historical_figure.find(opts.histfig_id))
985985
if not target then qerror('Historical figure not found') end
986+
elseif opts.entity_id then
987+
target = get_entity_target(df.historical_entity.find(opts.entity_id))
988+
if not target then qerror('Entity not found') end
986989
elseif opts.item_id then
987990
target = get_artifact_target(df.item.find(opts.item_id))
988991
if not target then qerror('Artifact not found') end

0 commit comments

Comments
 (0)