remove unused oldLength

closes #7808
This commit is contained in:
Matthias Mailänder
2015-04-01 19:43:56 +02:00
parent 14e9cfd433
commit 4cc016c3d0

View File

@@ -70,7 +70,6 @@ namespace OpenRA.Mods.Common.UtilityCommands
// Resize array for new entries
if (frames.Length > template.TilesCount)
{
var oldLength = template.TilesCount;
var ti = new TerrainTileInfo[frames.Length];
Array.Copy(tileInfo, ti, template.TilesCount);
tileInfoField.SetValue(template, ti);