Browse Source

Merge pull request #158 from camporter/taml_binary_crash_fix

Use writeLongString so that the taml binary writer matches the expected ...
Mike Lilligreen 11 years ago
parent
commit
ea9237349d
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();