mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Added runtime check for serializing RichValue with missing Register
git-svn-id: svn://ultimatepp.org/upp/trunk@1119 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5d450cfd5d
commit
729a359ea7
1 changed files with 1 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ void Value::Serialize(Stream& s) {
|
|||
}
|
||||
else {
|
||||
type = GetType();
|
||||
ASSERT_(!type || Typemap().Find(type) >= 0, "Missing RichValueType<" + AsString(type) + ">::Register");
|
||||
s / type;
|
||||
ptr->Serialize(s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue