ID:265042
 
Code:
for(var/area/A in world)
if(!A) continue
del(A)


Problem description:
How would I go about deleting areas?
I usally get this error BUG: Bad ref (4:31) after a while
Darker Emerald wrote:
Code:
> for(var/area/A in world)
> if(!A) continue
> del(A)
>

Problem description:
How would I go about deleting areas?
I usally get this error BUG: Bad ref (4:31) after a while

I'm not sure how areas are handled or what it even means to delete one. What are you trying to accomplish?

You can add turfs to another area's contents list to remove them from the area they're in. You could find all turfs that aren't in the base /area area and move them to it.
In response to Forum_account
Yes i figured i try that and seems to have fixed my problem, Thanks anywho. =]