Ensure our array handling only accepts single dimensional arrays.

This commit is contained in:
RoosterDragon
2015-08-26 20:04:51 +01:00
parent 42123d5653
commit 410b97823a
2 changed files with 2 additions and 2 deletions

View File

@@ -417,7 +417,7 @@ namespace OpenRA
}
else if (fieldType == typeof(bool))
return ParseYesNo(value, fieldType, fieldName);
else if (fieldType.IsArray)
else if (fieldType.IsArray && fieldType.GetArrayRank() == 1)
{
if (value == null)
return Array.CreateInstance(fieldType.GetElementType(), 0);