572
edits
No edit summary |
No edit summary |
||
Line 553: | Line 553: | ||
for _, building in ipairs(buildingList) do | for _, building in ipairs(buildingList) do | ||
local benefit = p._GetBuildingBenefits(building) | local benefit = p._GetBuildingBenefits(building) | ||
hasBenefits = hasBenefits or benefits ~= nil | hasBenefits = hasBenefits == true or benefits ~= nil | ||
benefits = benefits ~= nil and benefits or '' | benefits = benefits ~= nil and benefits or '' | ||
table.insert(benefits, benefit) | table.insert(benefits, benefit) |
edits