Fixed: data length was calculated incorrectly.
This commit is contained in:
parent
a8a67c6b16
commit
84c4326c09
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ namespace arookas
|
||||||
foreach (var value in this)
|
foreach (var value in this)
|
||||||
{
|
{
|
||||||
writer.WriteS32(ofs);
|
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)
|
foreach (var value in this)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue