Unbreaks turf.empty (#2053)

This commit is contained in:
CitadelStationBot
2017-07-18 07:58:27 -05:00
committed by kevinz000
parent fa9e1577ec
commit 556a8b7216
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -411,7 +411,7 @@
// Remove all atoms except observers, landmarks, docking ports
var/turf/T0 = src
var/static/list/ignored_atoms = typecacheof(list(/mob/dead, /obj/effect/landmark, /obj/docking_port, /atom/movable/lighting_object))
var/list/allowed_contents = typecache_filter_list(T0.GetAllContents(),ignored_atoms)
var/list/allowed_contents = typecache_filter_list(T0.GetAllContents(),ignored_atoms,reversed=TRUE)
for(var/i in 1 to allowed_contents.len)
var/thing = allowed_contents[i]
qdel(thing, force=TRUE)