From b13205da34af8cd76ca967ba50d4d2b0cda14b79 Mon Sep 17 00:00:00 2001 From: Markus Wagner Date: Wed, 6 Jan 2021 19:00:13 +0100 Subject: [PATCH] Fix end turn unintentional cleanup --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8d34ca2..88054c2 100644 --- a/src/main.rs +++ b/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); + } } }