- Fix issue 694

- Bump version number to 0.16.0 for upcoming release
This commit is contained in:
wagic.the.homebrew
2011-07-05 13:02:41 +00:00
parent c25dfe426f
commit c3ae216f62
3 changed files with 11 additions and 5 deletions

View File

@@ -123,8 +123,14 @@ void DeckStats::load(const std::string& filename)
int deckId = atoi(filename.substr(filename.find("_deck") + 5, filename.find(".txt")).c_str());
char buffer[512];
sprintf(buffer, "deck%i.txt", deckId);
string playerDeckFilePath= options.profileFile( buffer);
string playerDeckFilePath = options.profileFile( buffer);
DeckMetaData *playerDeckMetaData = DeckManager::GetInstance()->getDeckMetaDataByFilename( playerDeckFilePath, false);
if (!playerDeckMetaData)
{
DebugTrace("DeckStats.cpp:CONSISTENCY ERROR: DeckStats are set, but no deck meta data");
file.close();
return;
}
// check if this player deck has already been profiled for manacolors
char next = file.peek();
string manaColorIndex = "";