aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/pile.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-01-10 18:16:34 +0000
committerGitHub2018-01-10 18:16:34 +0000
commit2a62143fb9edb929f410b1b9b3aed16a16ceba39 (patch)
treed5d7839783cebb097af9f071751d693f47e3af6d /src/main/game/pile.cpp
parentMerge pull request #28 from thecharlesblake/all-canonical-games (diff)
parentAdd asserts to program and fix bugs they raise (diff)
downloadmetasol-2a62143fb9edb929f410b1b9b3aed16a16ceba39.tar.gz
metasol-2a62143fb9edb929f410b1b9b3aed16a16ceba39.zip

Merge pull request #29 from thecharlesblake/refactor-improve-debug

Refactor improve debug

Diffstat (limited to 'src/main/game/pile.cpp')
-rw-r--r--src/main/game/pile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp
index 264bb49..82ae344 100644
--- a/src/main/game/pile.cpp
+++ b/src/main/game/pile.cpp
@@ -38,6 +38,7 @@ void pile::place(const card c) {
}
card pile::take() {
+ assert(!empty());
card c = top_card();
pile_vec.pop_back();
return c;