Core: Fix in RegisterGlobalSerialize

git-svn-id: svn://ultimatepp.org/upp/trunk@11291 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-08-05 14:02:08 +00:00
parent fcb8e80847
commit 7f42448be7

View file

@ -699,8 +699,19 @@ void SerializeGlobalConfigs(Stream& s)
int q = sGCfg().Find(name);
if(q >= 0) {
int w = sGSerialize().Find(name);
if(w >= 0)
sGSerialize()[w](s);
if(w >= 0) {
String h;
if(s.IsStoring()) {
StringStream ss;
sGSerialize()[w](ss);
h = ss;
}
s % h;
if(s.IsLoading()) {
StringStream ss(h);
sGSerialize()[w](ss);
}
}
else
s % sGCfg()[q];
}