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)