Area datums returned from "locate() in world" statements have contents list with zero elements when they actually have contents.
As a consequence, any for-list on the area will not iterate or yield anything.
Numbered Steps to Reproduce Problem:
1. Locate an area of choice from world
2. Run length() on the area's contents
Code Snippet (if applicable) to Reproduce Problem:
Consider cloning this SS13 codebase: https://github.com/Baystation12/Baystation12
Then at the file /code/module/overmap/ships/computers/helm.dm - alter the get_known_sectors proc:
var/area/overmap/map = locate() in world
world.log << "Size of area's contents: [length(map.contents)]"
for(var/obj/effect/overmap/visitable/sector/S in map)
var/datum/computer_file/data/waypoint/R = new()
R.fields["name"] = S.name
R.fields["x"] = S.x
R.fields["y"] = S.y
known_sectors[S.name] = R
The area datum to have contents list with non-zero length and contain elements.
The area datum has contents that is completely empty.
Does the problem occur:
Every time? Or how often? Every time
In other games? Unknown
In other user accounts? N/A
On other computers? Unknown
When does the problem NOT occur?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Unknown. It may have worked before 513 or 512 judging from how the code has been written.
Getting the map datum from an other acquisition method.