File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,19 @@ Deck::Deck()
4949Deck::~Deck () {
5050 // TODO Auto-generated destructor stub
5151
52- while (!this ->deck .empty ())
53- {
54- delete this ->deck .back ();
55- this ->deck .pop_back ();
56- // std::cout<<":";
57- }
58-
59- while (!this ->discardPile .empty ())
60- {
61- delete this ->discardPile .back ();
62- this ->discardPile .pop_back ();
63- // std::cout<<":";
64- }
52+ // while(!this->deck.empty())
53+ // {
54+ // delete this->deck.back();
55+ // this->deck.pop_back();
56+ // //std::cout<<":";
57+ // }
58+ //
59+ // while(!this->discardPile.empty())
60+ // {
61+ // delete this->discardPile.back();
62+ // this->discardPile.pop_back();
63+ // //std::cout<<":";
64+ // }
6565}
6666
6767/* *
@@ -86,7 +86,7 @@ DevCardType Deck::drawCard()
8686
8787 if (this ->getSize () == 0 )
8888 {
89- return NULL ;
89+ return KNIGHT ;
9090 }
9191
9292 DevCardType card = this ->deck .back ();
You can’t perform that action at this time.
0 commit comments