*Core: Fix in Value::Serialize

git-svn-id: svn://ultimatepp.org/upp/trunk@4820 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-04-19 08:58:43 +00:00
parent 5b1ac98657
commit 2c5851be34

View file

@ -279,11 +279,14 @@ INITBLOCK {
void Value::Serialize(Stream& s) {
RegisterStd();
dword type;
int type;
if(s.IsLoading()) {
s / type;
Free();
int st = type == VOID_V ? VOIDV : type == STRING_V ? STRING : type;
if(st < 0)
s.LoadError();
else
if(st == STRING)
s % data;
else