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

This commit is contained in:
Tad Hardesty
2018-08-03 22:25:35 -07:00
committed by yogstation13-bot
parent ed263a7495
commit 1f41329eab

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"