From c1d36be6e8a79137e25a8466f3d39f7042495cb0 Mon Sep 17 00:00:00 2001 From: Casey Link Date: Wed, 3 Dec 2014 11:33:05 +0100 Subject: [PATCH] teleport: fix unused code causing crash The `teleportSettings` variable was never used and the line referenced the non-existing function `getArgsTogether` --- scripts/teleport.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/teleport.lua b/scripts/teleport.lua index 80a064d12..ffe798f5d 100644 --- a/scripts/teleport.lua +++ b/scripts/teleport.lua @@ -35,9 +35,8 @@ if args.showunitid or args.showpos then printall(df.global.cursor) end else - local teleportSettings=getArgsTogether(args) 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 teleport(unit,pos) -end \ No newline at end of file +end