teleport: fix unused code causing crash

The `teleportSettings` variable was never used and the line referenced
the non-existing function `getArgsTogether`
develop
Casey Link 2014-12-03 11:33:05 +01:00
parent 760acf017b
commit c1d36be6e8
1 changed files with 1 additions and 2 deletions

@ -35,9 +35,8 @@ if args.showunitid or args.showpos then
printall(df.global.cursor) printall(df.global.cursor)
end end
else else
local teleportSettings=getArgsTogether(args)
local unit = args.unit and df.unit.find(args.unit) or dfhack.gui.getSelectedUnit(true) local unit = args.unit and df.unit.find(args.unit) or dfhack.gui.getSelectedUnit(true)
local pos = not(not args.x or not args.y or not args.z) and {x=args.x,y=args.y,z=args.z} or df.global.cursor local pos = not(not args.x or not args.y or not args.z) and {x=args.x,y=args.y,z=args.z} or df.global.cursor
teleport(unit,pos) teleport(unit,pos)
end end