fixed bug with saving brand new AI decks.

This commit is contained in:
techdragon.nguyen@gmail.com
2010-10-22 09:22:25 +00:00
parent e2de03d987
commit 34bdfab36f
4 changed files with 13 additions and 2 deletions

View File

@@ -282,7 +282,10 @@ void GameStateDeckViewer::saveAsAIDeck( string deckName )
string filepath = RESPATH;
filepath.append("/ai/baka/").append( defaultAiDeckName ).append( ".txt" );
DebugTrace("saving AI deck " << filepath << endl );
myDeck->parent->save( filepath, true, deckName, deckDesc );
myDeck->parent->meta_desc = deckDesc;
myDeck->parent->meta_name = deckName;
myDeck->save( filepath, true);
oss.clear();
delete deckManager;
}