Fix bad vars in maps spilling over onto unrelated types (#39530)

This commit is contained in:
Tad Hardesty
2018-08-04 01:25:35 -04:00
committed by ShizCalev
parent 4ed13db358
commit 5ab7990313
+1 -1
View File
@@ -496,12 +496,12 @@ GLOBAL_DATUM_INIT(_preloader, /datum/map_preloader, new)
target_path = path
/datum/map_preloader/proc/load(atom/what)
GLOB.use_preloader = FALSE
for(var/attribute in attributes)
var/value = attributes[attribute]
if(islist(value))
value = deepCopyList(value)
what.vars[attribute] = value
GLOB.use_preloader = FALSE
/area/template_noop
name = "Area Passthrough"