Comment 4 for bug 782840

Revision history for this message
Steven Rose (smr-d) wrote :

Whoops - please ignore my last comment. I realized this bug has been fixed (just getting used to launchpad).

Note:

The code:

for name, id in pairs(getAreaTable()) do
    deleteArea(tonumber(id))
end

(Still) doesn't necessarily delete all areas. This is because getAreaTable returns a table of {[ area name, area id ]}. So if there are multiple areas with the same name, only one of those areas will be deleted because getAreaTable returns a table where the area name is unique.