Core: Minor fix in Value::Serialize

git-svn-id: svn://ultimatepp.org/upp/trunk@11695 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-01-15 12:51:36 +00:00
commit 5b8537c259

View file

@ -336,12 +336,10 @@ void Value::Serialize(Stream& s) {
dword type;
if(s.IsLoading()) {
s / type;
ASSERT(type < 0x8000000); // only Values with assigned real type ID can be serialized
if(type >= 0x8000000)
s.LoadError();
Free();
int st = type == VOID_V ? VOIDV : type == STRING_V ? STRING : type;
if(st < 0)
s.LoadError();
else
if(st == STRING)
s % data;
else