From a6c35693462e9f6e29ce7da388464bc93c7b075b Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Tue, 7 Jul 2020 23:05:23 -0500 Subject: [PATCH] fix: minimax.cpp vector fix --- backtracking/minimax.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtracking/minimax.cpp b/backtracking/minimax.cpp index 1e5a2ae91..5de9838d3 100644 --- a/backtracking/minimax.cpp +++ b/backtracking/minimax.cpp @@ -17,7 +17,7 @@ * @param scores saved numbers in vector * @return if maximum or not */ -int minimax(int depth, int node_index, bool is_max, std::vector* &scores, +int minimax(int depth, int node_index, bool is_max, const std::vector &scores, int height) { if (depth == height) { return scores[node_index];