Little error fixed in lua script

develop
Warmist 2012-09-25 10:24:45 +03:00
parent bd2f3a9998
commit cc5df57e53
1 changed files with 1 additions and 1 deletions

@ -3,7 +3,7 @@ if args[1]=="--file" or args[1]=="-f" then
local f=loadfile (args[2])
dfhack.pcall(f,table.unpack(args,3))
elseif args[1]~=nil then
local f=load(args[1],'=(lua command)', 't',)
local f=load(args[1],'=(lua command)', 't')
dfhack.pcall(f,table.unpack(args,2))
else
dfhack.interpreter("lua","lua.history")