fix teslazap OutOfMemory exception

This commit is contained in:
Bob
2010-11-14 17:32:23 +13:00
parent f4e04ece12
commit d152d21338

View File

@@ -103,6 +103,8 @@ namespace OpenRA.Mods.RA.Effects
rs.Add(new Renderable(s.GetSprite(step[4]), z + new float2(step[2], step[3]), "effect", (int)from.Y));
z += new float2(step[0], step[1]);
if( rs.Count >= 1000 )
break;
}
p = z;