From 747e3e7de81aa0a94a521e33c8ca0bc5521ec662 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 17 Jan 2013 15:03:44 +0100 Subject: [PATCH] Fixed bug with invalid type in state files. --- lib/base/dynamicobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp index 9298068a8..a30e61eb6 100644 --- a/lib/base/dynamicobject.cpp +++ b/lib/base/dynamicobject.cpp @@ -341,7 +341,7 @@ void DynamicObject::DumpObjects(const String& filename) Dictionary::Ptr persistentObject = boost::make_shared(); - persistentObject->Set("type", object->GetType()); + persistentObject->Set("type", object->GetType()->GetName()); persistentObject->Set("name", object->GetName()); int types = Attribute_Local | Attribute_Replicated; -- 2.40.0