Skip to content

Commit

Permalink
correction for XMLData.game instead of GSF hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhoribu authored Jan 19, 2025
1 parent 93741f5 commit a34baa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/route2.lic
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def find_room(what, src = nil)
src ||= Room.current

if defined?(DB_Store)
if (custom_targets = DB_Store.read("GSF", 'go2')["custom targets"]) && ((target = custom_targets.keys.find { |key| key =~ /^#{what}$/i }) or (target = custom_targets.keys.find { |key| key =~ /^#{what}/i }))
if (custom_targets = DB_Store.read("#{XMLData.game}", 'go2')["custom targets"]) && ((target = custom_targets.keys.find { |key| key =~ /^#{what}$/i }) or (target = custom_targets.keys.find { |key| key =~ /^#{what}/i }))
unless custom_targets[target].kind_of?(Array)
echo("Custom targets is an integer: #{custom_targets[target].kind_of?(Integer)}")
destination_id = custom_targets[target]
Expand Down

0 comments on commit a34baa6

Please sign in to comment.