Skip to content

Commit

Permalink
removed unnecessary clones
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPatten committed Oct 28, 2023
1 parent ecd2a60 commit f61c0b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Projects/Tetris/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ void DrawFrame()
{
bool collision = false;
int yScope = TETROMINO.Y;
string[] shapeScope = (string[])TETROMINO.Shape.Clone();
string[] nextShapeScope = (string[])TETROMINO.Next.Clone();
string[] shapeScope = TETROMINO.Shape;
string[] nextShapeScope = TETROMINO.Next;
char[][] frame = new char[PLAYFIELD.Length][];

//Field
Expand Down

0 comments on commit f61c0b0

Please sign in to comment.