Fix end turn unintentional cleanup
This commit is contained in:
		
							
								
								
									
										10
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/main.rs
									
									
									
									
									
								
							| @@ -243,12 +243,12 @@ impl Game { | ||||
|  | ||||
|         if supply || provinces { | ||||
|             self.state = GameState::Over; | ||||
|         } | ||||
|  | ||||
|         for p in self.players.iter_mut() { | ||||
|             p.draw_pile.append(&mut p.played_cards); | ||||
|             p.draw_pile.append(&mut p.hand); | ||||
|             p.draw_pile.append(&mut p.discard_pile); | ||||
|             for p in self.players.iter_mut() { | ||||
|                 p.draw_pile.append(&mut p.played_cards); | ||||
|                 p.draw_pile.append(&mut p.hand); | ||||
|                 p.draw_pile.append(&mut p.discard_pile); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user