ID:268745
 
omg It's taken me this long to realize that defining a type in for(), for instance, for(var/obj/building/B as obj) doesn't actually filter anything out!

it was fooling me because of this -

for(var/obj/Building/B as obj in world)
if(B.building==1) return

obj/Building/var/building

only a building predefined var can be accessed unless you put a predefine type in for()....

but it doens't filter the darn things out :) goes through every obj, so what I was doing was editing variables of objs that didn't have those variables...
The reference also says that without any filters provided, the declared type will act as the filter. You only need to to do for(var/obj/building/B)...
In response to tenkuu
ahhhh lmao... alright thanks for that :)