Skip to content

Commit da5858c

Browse files
author
RUBIUS\chebanovdd
committed
Refactoring.
1 parent 29c9a62 commit da5858c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/Unity.Match3/Assets/Scripts/Common/SpecialItemDetectors/StoneItemDetector.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public IEnumerable<IUnityGridSlot> GetSpecialItemGridSlots(IGameBoard<IUnityGrid
3737
continue;
3838
}
3939

40-
var gridPosition = gameBoard[position];
41-
if (gridPosition.State.GroupId == (int) TileGroup.Stone)
40+
var lookupGridSlot = gameBoard[position];
41+
if (lookupGridSlot.State.GroupId == (int) TileGroup.Stone)
4242
{
43-
yield return gridPosition;
43+
yield return lookupGridSlot;
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)