Commit 57d885ac authored by vosen's avatar vosen

Fix indexing mistake.

parent b73acfce
...@@ -1505,7 +1505,7 @@ static List<FieldInfo> GetSettableFields(Type t) ...@@ -1505,7 +1505,7 @@ static List<FieldInfo> GetSettableFields(Type t)
} }
else else
{ {
var types = new Type[length - startBound]; var types = new Type[length];
for (int i = startBound; i < startBound + length; i++) for (int i = startBound; i < startBound + length; i++)
{ {
types[i - startBound] = reader.GetFieldType(i); types[i - startBound] = reader.GetFieldType(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment