From 3ce4c07a3d78082590629d36d4039d68f0a84663 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 10 Jan 2018 18:15:14 +0000 Subject: Add asserts to program and fix bugs they raise --- src/main/game/pile.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/game/pile.cpp') 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; -- cgit v1.2.1