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:
techdragon.nguyen@gmail.com
2010-12-16 12:50:01 +00:00
parent 1cc516193e
commit 038fef7742
+3
View File
@@ -24,6 +24,9 @@ DeckMetaData::DeckMetaData(string filename, Player * statsPlayer)
void DeckMetaData::loadStatsForPlayer(Player * statsPlayer, string deckStatsFileName) void DeckMetaData::loadStatsForPlayer(Player * statsPlayer, string deckStatsFileName)
{ {
DeckStats * stats = DeckStats::GetInstance(); DeckStats * stats = DeckStats::GetInstance();
_nbGamesPlayed = 0;
_percentVictories = 0;
_victories = 0;
if (statsPlayer) if (statsPlayer)
{ {
stats->load(statsPlayer); stats->load(statsPlayer);