Browse Source

Use writeLongString so that the taml binary writer matches the expected functionality of the binary reader.

Cameron Porter 11 years ago
parent
commit
ad74d7c334
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/persistence/taml/binary/tamlBinaryWriter.cc

+ 1 - 1
engine/source/persistence/taml/binary/tamlBinaryWriter.cc

@@ -246,7 +246,7 @@ void TamlBinaryWriter::writeCustomNode( Stream& stream, const TamlCustomNode* pC
     stream.writeString( pCustomNode->getNodeName() );
 
     // Write custom node text.
-    stream.writeString( pCustomNode->getNodeTextField().getFieldValue(), MAX_TAML_NODE_FIELDVALUE_LENGTH );
+    stream.writeLongString(MAX_TAML_NODE_FIELDVALUE_LENGTH, pCustomNode->getNodeTextField().getFieldValue());
 
     // Fetch node children.
     const TamlCustomNodeVector& nodeChildren = pCustomNode->getChildren();