var
savefile/S
proc/Proc1()
S=new("players/CharSaves/[name]")
N=ToParams(list(name,100,100,1,0,50,50,50,50))
S["stats"]<<N
proc/Proc2()
S=new("players/CharSaves/[A]")
var/N
S["stats"]>>N
Variable S is global. In Proc1 I make new savefile using global var and save some information. Later in Proc2 I try to load that information, but it ends up with null. Then I checked and savefile was 0 bytes in size. Once I closed world (DreamSeeker) information been written to savefile. Why?
P.S.1 If you wonder why I use global var, then I'm just too lazy to type var/savefile/S everytime
P.S.2 Before you start whining, [A] and [name] are equal