From 729a359ea7965675293a20e13308bf419a9e6f1a Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 2 May 2009 15:45:07 +0000 Subject: [PATCH] Added runtime check for serializing RichValue with missing Register git-svn-id: svn://ultimatepp.org/upp/trunk@1119 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Value.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/uppsrc/Core/Value.cpp b/uppsrc/Core/Value.cpp index 31d40d6ca..640926de3 100644 --- a/uppsrc/Core/Value.cpp +++ b/uppsrc/Core/Value.cpp @@ -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); }