From ea9520a7469d37809df7c4eaeb36b9ff8c4490e1 Mon Sep 17 00:00:00 2001 From: Minho5Oh Date: Tue, 6 Aug 2024 23:37:24 +0900 Subject: [PATCH] fix the typo in findDominantNode() #12 --- include/travel/tgs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/travel/tgs.hpp b/include/travel/tgs.hpp index c2b2a48..440e732 100644 --- a/include/travel/tgs.hpp +++ b/include/travel/tgs.hpp @@ -702,7 +702,7 @@ namespace travel { for (int s_i = 0; s_i < 4; s_i++){ if (tgf_in[r_i][c_i][s_i].is_curr_data){ if (tgf_in[r_i][c_i][s_i].node_type == GROUND){ - if (tgf_in[r_i][c_i][s_i].weight > tgf_in[max_tri_idx.row][max_tri_idx.row][max_tri_idx.tri].weight){ + if (tgf_in[r_i][c_i][s_i].weight > tgf_in[max_tri_idx.row][max_tri_idx.col][max_tri_idx.tri].weight){ max_tri_idx.row = r_i; max_tri_idx.col = c_i; max_tri_idx.tri = s_i;