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

@@ -89,7 +89,7 @@ namespace OpenRA
return "{0},{1},{2},{3}".F(r.X, r.Y, r.Width, r.Height);
}
if (t.IsArray)
if (t.IsArray && t.GetArrayRank() == 1)
{
var elems = ((Array)v).OfType<object>();
return elems.JoinWith(", ");