From 84c4326c09a2932be461f61f64fa00a9619707c3 Mon Sep 17 00:00:00 2001 From: arookas Date: Sat, 12 Dec 2015 12:39:57 -0500 Subject: [PATCH] Fixed: data length was calculated incorrectly. --- data table.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data table.cs b/data table.cs index 3feef96..a8201e8 100644 --- a/data table.cs +++ b/data table.cs @@ -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) {