Skip to content

Commit

Permalink
fix: std::vector
Browse files Browse the repository at this point in the history
  • Loading branch information
AsPJT committed Nov 17, 2024
1 parent 55c92c1 commit 3433ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/PAX_SAPIENTICA/Simulation/Settlement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ namespace paxs {
male_.marry(female_id, female_.cgetGenome(), female_.cgetFarming(), female_.cgetHunterGatherer(), female_.cgetLanguage());
agents.emplace_back(male_);

marriage_pos_list.emplace_back(close_settlements[j]->position.x, close_settlements[j]->position.y, position.x, position.y);
marriage_pos_list.emplace_back(GridType4{ close_settlements[j]->position.x, close_settlements[j]->position.y, position.x, position.y });
}
// 父方の場合
else {
Expand All @@ -461,7 +461,7 @@ namespace paxs {
male_settlement_position /= SimulationConstants::getInstance()->cell_group_length;
add_agent(female_, male_settlement_id, male_settlement_position);

marriage_pos_list.emplace_back(position.x, position.y, close_settlements[j]->position.x, close_settlements[j]->position.y);
marriage_pos_list.emplace_back(GridType4{ position.x, position.y, close_settlements[j]->position.x, close_settlements[j]->position.y });
}
is_found = true;
break;
Expand Down

0 comments on commit 3433ded

Please sign in to comment.