issue 561
initialized deck stats number. The value wasn't being initialized correctly and thus retained the last set of values for a given deck.
This commit is contained in:
@@ -24,6 +24,9 @@ DeckMetaData::DeckMetaData(string filename, Player * statsPlayer)
|
||||
void DeckMetaData::loadStatsForPlayer(Player * statsPlayer, string deckStatsFileName)
|
||||
{
|
||||
DeckStats * stats = DeckStats::GetInstance();
|
||||
_nbGamesPlayed = 0;
|
||||
_percentVictories = 0;
|
||||
_victories = 0;
|
||||
if (statsPlayer)
|
||||
{
|
||||
stats->load(statsPlayer);
|
||||
|
||||
Reference in New Issue
Block a user