fixed a small bug

develop
Warmist 2016-05-22 22:54:51 +03:00
parent c985cd6f1d
commit 726994969d
1 changed files with 3 additions and 0 deletions

@ -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)