Procházet zdrojové kódy

spline objects were mis-saving in submis files
classes using AbstractClassRep::FIELD_SpecialtyArrayField use an explicit-writing mechanism, rather than tying things to a variable 'slot', so don't try and concaenate the two

AzaezelX před 7 měsíci
rodič
revize
d6334f6cca
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      Engine/source/console/persistenceManager.cpp

+ 4 - 0
Engine/source/console/persistenceManager.cpp

@@ -1541,6 +1541,10 @@ void PersistenceManager::updateObject(SimObject* object, ParsedObject* parentObj
 
                      newLines.push_back(createNewProperty(f->pFieldname, cmdBuf, f->elementCount > 1, j));
                   }
+                  else if (f->flag.test(AbstractClassRep::FIELD_SpecialtyArrayField))
+                  {
+                     newLines.push_back(value);
+                  }
                   else
                      newLines.push_back(createNewProperty(f->pFieldname, value, f->elementCount > 1, j));
                }