diff options
Diffstat (limited to 'Source/Validator.cpp')
-rw-r--r-- | Source/Validator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Validator.cpp b/Source/Validator.cpp index 3001790..3b4020b 100644 --- a/Source/Validator.cpp +++ b/Source/Validator.cpp | |||
@@ -13,8 +13,8 @@ void Validator::Validate(Puzzle& p) { | |||
13 | // Validate gap failures as an early exit. | 13 | // Validate gap failures as an early exit. |
14 | for (int x = 0; x < p.width; x++) { | 14 | for (int x = 0; x < p.width; x++) { |
15 | for (int y = 0; y < p.height; y++) { | 15 | for (int y = 0; y < p.height; y++) { |
16 | Cell cell = p.grid[x][y]; | 16 | const Cell& cell = p.grid[x][y]; |
17 | auto decoration = cell.decoration; | 17 | const auto& decoration = cell.decoration; |
18 | if (decoration) { | 18 | if (decoration) { |
19 | if (decoration->type == Type::Stone || | 19 | if (decoration->type == Type::Stone || |
20 | decoration->type == Type::Star || | 20 | decoration->type == Type::Star || |