summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 35ecee1e58..fdcf348bf8 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1064,6 +1064,11 @@ bool deck_triple_draw()
const int num_cards = cards_in_deck(deck);
+ // We have to identify the deck before removing cards from it.
+ // Otherwise, _remember_drawn_card() will implicitly call
+ // _deck_ident() when the deck might have no cards left.
+ _deck_ident(deck);
+
if (num_cards == 1)
{
// Only one card to draw, so just draw it.