Fixed: data length was calculated incorrectly.

This commit is contained in:
arookas 2015-12-12 12:39:57 -05:00
parent a8a67c6b16
commit 84c4326c09

View file

@ -28,7 +28,8 @@ namespace arookas
foreach (var value in this)
{
writer.WriteS32(ofs);
ofs += value.Length + 1; // include terminator
var length = writer.Encoding.GetByteCount(value);
ofs += length + 1; // include terminator
}
foreach (var value in this)
{