Commit d2a3259f authored by Jason Rhinelander's avatar Jason Rhinelander

Fix for eris::Position change

parent f4b829a4
......@@ -391,7 +391,7 @@ int main(int argc, char **argv) {
if (election->electionPeriod()) {
auto winner = sim->agent<Party>(election->election());
auto pos = winner->position().at(0);
auto pos = winner->position()[0];
winner_pos.push_back(pos);
winner_mean = std::accumulate(winner_pos.cbegin(), winner_pos.cend(), 0.0) / winner_pos.size();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment