fix tests

master^2
Bel LaPointe 2020-05-07 06:50:19 -06:00
parent 0a0febdb49
commit 3e9ce3edff
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ impl GameMaster {
debug!("no chancellor candidates found in election set"); debug!("no chancellor candidates found in election set");
return self.game_election(); return self.game_election();
} }
if self.player(chancellor_candidate.last().unwrap().clone()).is_none() { let chancellor_candidate = chancellor_candidate.last().unwrap();
if self.player(chancellor_candidate.clone()).is_none() {
debug!("invalid chancellor candidates found in election set"); debug!("invalid chancellor candidates found in election set");
return self.game_election(); return self.game_election();
} }