added more debug info (name of card with conflict ) for id conflicts. Don't have the name of the card it conflicts with however

This commit is contained in:
techdragon.nguyen@gmail.com
2010-09-26 07:39:13 +00:00
parent ac435980ce
commit 715ee56d9e

View File

@@ -395,7 +395,7 @@ bool MTGAllCards::addCardToCollection(MTGCard * card, int setId){
if (collection.find(newId) != collection.end()){
#if defined (_DEBUG)
char outBuf[4096];
sprintf(outBuf,"warning, card id collision! : %i\n", newId);
sprintf(outBuf,"warning, card id collision! : %i -> %s (%s) \n", newId, card->data->name.c_str(), setlist.getInfo( setId )->getName().c_str());
OutputDebugString(outBuf);
#endif
SAFE_DELETE(card);