Don't write local-only objects to the state file.

This commit is contained in:
Gunnar Beutner 2012-10-12 10:16:03 +02:00
parent a5046ae7bf
commit ec0e319d8a
1 changed files with 3 additions and 0 deletions

View File

@ -375,6 +375,9 @@ void DynamicObject::DumpObjects(const String& filename)
for (nt = tt->second.begin(); nt != tt->second.end(); nt++) {
DynamicObject::Ptr object = nt->second;
if (object->IsLocal())
continue;
Dictionary::Ptr persistentObject = boost::make_shared<Dictionary>();
persistentObject->Set("type", object->GetType());