mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
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:
parent
18aabf0bf5
commit
5b8537c259
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue