diff --git a/bulls-and-cows-cpp/CGame.h b/bulls-and-cows-cpp/CGame.h index 03c2c07..483237c 100644 --- a/bulls-and-cows-cpp/CGame.h +++ b/bulls-and-cows-cpp/CGame.h @@ -40,7 +40,7 @@ bool CGame::IsEqual(const T number, const N digit, int i) while ((--i) >= 0) { - if (digit == number.at(i)) result = true; + if (digit == number[i]) result = true; } return result; }