From baeb8945027540a0f795978e9e3ace32e8d4ad48 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Fri, 29 Aug 2014 18:43:22 -0700 Subject: [PATCH] Made hack-wish work properly. --- scripts/gui/hack-wish.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gui/hack-wish.lua b/scripts/gui/hack-wish.lua index 77d163599..f46e75392 100644 --- a/scripts/gui/hack-wish.lua +++ b/scripts/gui/hack-wish.lua @@ -198,6 +198,8 @@ end scriptArgs={...} +utils=require('utils') + validArgs = validArgs or utils.invert({ 'startup', 'all', @@ -206,8 +208,6 @@ validArgs = validArgs or utils.invert({ 'multi' }) -utils=require('utils') - args = utils.processArgs({...}, validArgs) eventful=require('plugins.eventful') @@ -220,4 +220,4 @@ else if not reaction.code:find('DFHACK_WISH') then return nil end hackWish(unit) end -end \ No newline at end of file +end