resolution to issue 794. Non-classic games crashed at the completion of the game.

This commit is contained in:
techdragon.nguyen@gmail.com
2012-02-06 09:07:37 +00:00
parent bc8ec9a065
commit 85848cfe41
4 changed files with 14 additions and 6 deletions
+1 -4
View File
@@ -105,10 +105,7 @@ class HumanPlayer: public Player
{
public:
HumanPlayer(GameObserver *observer, string deckFile, string deckFileSmall, bool premade = false, MTGDeck * deck = NULL);
void End(){
if(!premade && opponent())
DeckStats::GetInstance()->saveStats(this, opponent(), observer);
};
void End();
friend ostream& operator<<(ostream&, const HumanPlayer&);
};