proc
SaveTurfs() //This is the Save proc.
var/savefile/F = new ("turfs.sav") //creates the save file
var/list/L = new
for(var/turf/T in world)
T.saved_x = T.x //these tell the game to save the turfs
T.saved_y = T.y //location.
T.saved_z = T.z
L += T
F[""] << L
proc/LoadTurfs() //Its time to load the turfs!
var/savefile/F = new ("turfs.sav")
var/list/L = new
F[""] >> L
if(!L) return
for(var/turf/T in world) if(T.loc) del(T)
for(var/turf/T in L)
T.loc = locate(T.saved_x,T.saved_y,T.saved_z)
Problem description: getting a error on the very last line saying "error:T.loc:cannot change constant value". Im trying to save the turfs so that it saves all the vars attached to them. please help