mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*Core: Fix in Value::Serialize
git-svn-id: svn://ultimatepp.org/upp/trunk@4820 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5b1ac98657
commit
2c5851be34
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue