From 39644676e2716a285fcea6bb81e07f326bda2f68 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Tue, 3 Dec 2019 10:04:16 -0800 Subject: Started work on symmetry island --- Source/Validator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Validator.cpp') 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) { // Validate gap failures as an early exit. for (int x = 0; x < p.width; x++) { for (int y = 0; y < p.height; y++) { - Cell cell = p.grid[x][y]; - auto decoration = cell.decoration; + const Cell& cell = p.grid[x][y]; + const auto& decoration = cell.decoration; if (decoration) { if (decoration->type == Type::Stone || decoration->type == Type::Star || -- cgit 1.4.1