2
0
Эх сурвалжийг харах

Merge pull request #158 from camporter/taml_binary_crash_fix

Use writeLongString so that the taml binary writer matches the expected ...
Mike Lilligreen 11 жил өмнө
parent
commit
ea9237349d

+ 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();