aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/pile.cpp
diff options
context:
space:
mode:
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;