From 726994969d8a8cfb3ea77aa63677cb51a3740b44 Mon Sep 17 00:00:00 2001 From: Warmist Date: Sun, 22 May 2016 22:54:51 +0300 Subject: [PATCH] fixed a small bug --- scripts/gui/advfort.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gui/advfort.lua b/scripts/gui/advfort.lua index 4f18d071b..67a0f4bb3 100644 --- a/scripts/gui/advfort.lua +++ b/scripts/gui/advfort.lua @@ -1452,6 +1452,9 @@ function usetool:openShopWindowButtoned(building,no_reset) table.insert(list,{text=label,button=choice,is_button=true}) names_already_in[label]=true end + local adv=df.global.world.units.active[0] + local state={unit=adv,from_pos={x=adv.pos.x,y=adv.pos.y, z=adv.pos.z},building=building + ,screen=self,bld=building} if #list==0 then --we couldn't use the df hack so let's fill the list from fallback self:openShopWindowFallback(building,list)